Lines Matching +full:on +full:- +full:die
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 Simple utility to make a single-image install kernel with initial ramdisk
7 Pete Zaitcev <zaitcev@yahoo.com> endian fixes for cross-compiles, 2000.
25 * Note: run this on an a.out kernel (use elftoaout for it),
33 /* align to power-of-two size */
57 static void die(const char *str) in die() function
110 die(filename); in get_start_end()
131 * When we search do so in steps of 4 as HdrS is on a 4-byte aligned
132 * address (it is on same alignment as sparc instructions)
142 die("lseek"); in get_hdrs_offset()
144 die(filename); in get_hdrs_offset()
154 offset -= LOOKBACK; in get_hdrs_offset()
158 errno = -EINVAL; in get_hdrs_offset()
159 …die("Calculated a negative offset, probably elftoaout generated an invalid image. Did you use a re… in get_hdrs_offset()
162 die("lseek"); in get_hdrs_offset()
164 die(filename); in get_hdrs_offset()
191 die(argv[4]); in main()
199 die(argv[2]); in main()
201 die(argv[2]); in main()
219 die("lseek"); in main()
234 die(argv[2]); in main()
240 die("lseek"); in main()
242 st4(buffer, align(end + 32 + 8191) - (start & ~0x3fffffUL) + in main()
249 die(argv[2]); in main()
253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main()
254 die("lseek"); in main()
256 die(argv[4]); in main()
259 die(argv[2]); in main()
261 die("close"); in main()
263 die("close"); in main()