summaryrefslogtreecommitdiffstats
path: root/src/include/string.h
diff options
context:
space:
mode:
authorMichael Brown2023-06-30 13:03:41 +0200
committerMichael Brown2023-07-03 14:31:31 +0200
commit6f57d919357a43507935a5ea78a66702ac0f3d54 (patch)
treea4a8cae96746ed0a8f78802004706f96ed3bb045 /src/include/string.h
parent[build] Inhibit linker warnings about an implied executable stack (diff)
downloadipxe-6f57d919357a43507935a5ea78a66702ac0f3d54.tar.gz
ipxe-6f57d919357a43507935a5ea78a66702ac0f3d54.tar.xz
ipxe-6f57d919357a43507935a5ea78a66702ac0f3d54.zip
[build] Use separate code segment if supported by linker
Some versions of ld will complain that the automatically created (and unused by our build process) ELF program headers include a "LOAD segment with RWX permissions". Silence this warning by adding "-z separate-code" to the linker options, where supported. For BIOS builds, where the prefix will generally require writable access to its own (tiny) code segment, simply inhibit the warning completely via "--no-warn-rwx-segments". Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/string.h')
0 files changed, 0 insertions, 0 deletions