Lines Matching +full:on +full:- +full:die

1 // SPDX-License-Identifier: GPL-2.0
9 * This file builds a disk-image from three different files:
11 * - setup: 8086 machine code, sets up system parm
12 * - system: 80386 code for actual system
13 * - zoffset.h: header with ZO_* defines
71 /*----------------------------------------------------------------------*/
135 while (len--) in partial_crc32()
140 static void die(const char * str, ...) in die() function
152 die("Usage: build setup system zoffset.h image"); in usage()
189 num_sections--; in update_pecoff_section_header_fields()
201 u32 reloc_offset = size - PECOFF_RELOC_RESERVE - PECOFF_COMPAT_RESERVE; in update_pecoff_setup_and_reloc()
205 u32 setup_size = reloc_offset - setup_offset; in update_pecoff_setup_and_reloc()
221 * Put the IA-32 machine type (0x14c) and the associated entry point in update_pecoff_setup_and_reloc()
236 unsigned int text_sz = file_sz - text_start; in update_pecoff_text()
237 unsigned int bss_sz = init_sz - file_sz; in update_pecoff_text()
257 put_unaligned_le32(file_sz - 512 + bss_sz, &buf[pe_header + 0x1c]); in update_pecoff_text()
295 addr = efi64_stub_entry - 0x200; in efi_stub_entry_update()
300 die("32-bit and 64-bit EFI entry points do not match\n"); in efi_stub_entry_update()
345 die("Unable to open `%s': %m", fname); in parse_zoffset()
346 c = fread(buf, 1, sizeof(buf) - 1, file); in parse_zoffset()
348 die("read-error on `zoffset.h'"); in parse_zoffset()
389 die("Unable to write `%s': %m", argv[4]); in main()
394 die("Unable to open `%s': %m", argv[1]); in main()
397 die("read-error on `setup'"); in main()
399 die("The setup must be at least 1024 bytes"); in main()
401 die("Boot block hasn't got boot flag (0xAA55)"); in main()
412 memset(buf+c, 0, i-c); in main()
422 die("Unable to open `%s': %m", argv[2]); in main()
424 die("Unable to stat `%s': %m", argv[2]); in main()
428 die("Unable to mmap '%s': %m", argv[2]); in main()
429 /* Number of 16-byte paragraphs, including space for a 4-byte CRC */ in main()
433 * COFF requires minimum 32-byte alignment of sections, and in main()
440 buf[0x1f1] = setup_sectors-1; in main()
449 * [i, i + _ehead), and the destination is [init_sz - _end, init_sz). in main()
454 * 'init_sz - _end' is at least 64k. in main()
456 * For future-proofing, increase init_sz if necessary. in main()
459 if (init_sz - _end < i + _ehead) { in main()
473 die("Writing setup failed"); in main()
478 die("Writing kernel failed"); in main()
481 while (sz++ < (sys_size*16) - 4) { in main()
484 die("Writing padding failed"); in main()
490 die("Writing CRC failed"); in main()
494 die("Writing image failed"); in main()