Lines Matching +full:extra +full:- +full:byte
3 # SPDX-License-Identifier: Apache-2.0
63 bytesz = h.p_memsz - h.p_filesz
65 verbose("%d bytes of zero-fill at 0x%x" % (bytesz, addr))
73 cf = open("zefi-segments.h", "w")
77 cf.write("/* Sizes and offsets specified in 4-byte units.\n")
78 cf.write(" * All addresses 4-byte aligned.\n")
114 # + UEFI API assumes 16-bit wchar_t
117 includes.extend(["-I", include_dir])
118 cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes +
119 ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
120 "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile])
124 # Extract the .data segment and append our extra blob
125 cmd = [args.objcopy, "-O", "binary", "-j", ".data", "zefi.elf", "data.dat"]
135 subprocess.run([args.objcopy, "--update-section", ".data=data.dat",
138 # Convert it to a PE-COFF DLL.
139 cmd = [args.objcopy, "--target=efi-app-x86_64",
140 "-j", ".text", "-j", ".reloc", "-j", ".data",
153 parser.add_argument("-c", "--compiler", required=True, help="Compiler to be used")
154 parser.add_argument("-o", "--objcopy", required=True, help="objcopy to be used")
155 parser.add_argument("-f", "--elf-file", required=True, help="Input file")
156 parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
157 parser.add_argument("-i", "--includes", required=True, nargs="+",