mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 21:11:04 +01:00
8a6ab0f71f
Currently for the MFS, firmware and VDSO template assembly files we pass the path to include with .incbin unquoted and use __XSTRING within the assembly file to stringify it. However, __XSTRING doesn't just perform a single level of expansion, it performs the normal full expansion of the macro, and so if the path itself happens to tokenise to something that includes a defined macro in it that will itself be substituted. For example, with #define MACRO 1, a path like /path/containing/MACRO/in/it will expand to /path/containing/1/in/it and then, when stringified, end up as "/path/containing/1/in/it", not the intended string. Normally, macros have names that start or end witih underscores and are unlikely to appear in a tokenised path (even if technically they could), but now that we've switched to GNU C as of commit |
||
---|---|---|
.. | ||
fdt | ||
sound | ||
acpi_quirks2h.awk | ||
amd64_ia32_vdso.sh | ||
amd64_vdso.sh | ||
arm_kernel_boothdr.awk | ||
bus_macro.sh | ||
embed_mfs.sh | ||
fw_stub.awk | ||
makeobjops.awk | ||
makesyscalls.lua | ||
miidevs2h.awk | ||
pccarddevs2h.awk | ||
sdiodevs2h.awk | ||
usbdevs2h.awk | ||
vdso_wrap.S | ||
vnode_if.awk |