summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python
diff options
context:
space:
mode:
authorJames Le Cuirot <jlecuirot@microsoft.com>2025-03-19 15:33:07 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-07-22 16:19:51 +0000
commit188f8c686ed39b7b9998f1c2f4658ca8ba74b6ba (patch)
tree2f89afa46372a6e93313a54f4a2c22c76e2e13ce /BaseTools/Source/Python
parentd7ccf477f598949d76ab1596bf62f495997cf70a (diff)
downloadedk2-188f8c686ed39b7b9998f1c2f4658ca8ba74b6ba.zip
edk2-188f8c686ed39b7b9998f1c2f4658ca8ba74b6ba.tar.gz
edk2-188f8c686ed39b7b9998f1c2f4658ca8ba74b6ba.tar.bz2
BaseTools/tools_def: Always link with -Wl,-z,notext for BFD/LLD
Commit a257988f590ba90dd8394dd6bc7014ae9d814a08 added -Wl,-z,notext, but only when linking for IA32/X64 with LLD. BFD can also be configured to either warn or error when text relocations are detected. It does not check at all by default, but Gentoo Linux tells it to warn in its regular configuration and tells it to error in its hardened configuration. Commit 14cb48b0a053b44c5a6bcc89cbbbf86ac78c7820 made linker warnings fatal in all BFD cases. At least the AARCH64 and IA32/X64 code does include text relocations, so this now fails to build on Gentoo Linux. We should therefore always use -Wl,-z,notext. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions