]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Allow compiling elf2efi with clang
authorMichael Brown <mcb30@ipxe.org>
Tue, 5 Dec 2023 15:49:17 +0000 (15:49 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 5 Dec 2023 15:49:17 +0000 (15:49 +0000)
commitf22879ca994aedd2667bb0c73ebce505bf5f8cef
treeaf4fc75e8998c6057c1a0acc2868064a73f3cd87
parent98dd25a3bb2d3aafa71f088cbabf89418a783132
[efi] Allow compiling elf2efi with clang

The clang compiler does not (and apparently will not ever) allow for
variable-length arrays within structs.

Work around this limitation by using a fixed-length array to hold the
PDB filename in the debug section.

This mirrors wimboot commit f52c3ff ("[efi] Allow compiling elf2efi
with clang").

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/elf2efi.c