diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-08-06 11:16:29 +0100 |
---|---|---|
committer | Nigel Croxon <ncroxon@redhat.com> | 2022-08-08 11:35:10 -0400 |
commit | 803b49c40bb0b720b90d9c31d372911f1b946aa7 (patch) | |
tree | 9c8e9bb22bc576f07e19e19be3fce8461b4fc9ee /gnuefi/crt0-efi-ia64.S | |
parent | 2ed6486834634130fe7bc9b8803b0113767fc7c1 (diff) | |
download | gnu-efi-803b49c40bb0b720b90d9c31d372911f1b946aa7.tar.gz |
*/*.S: add non-executable GNU stack marking on ELF-linux
binutils-2.39 enabed a few warning by default
(https://sourceware.org/pipermail/binutils/2022-August/122246.html):
> The ELF linker will now generate a warning message if the stack is made executable.
Let's suppress the warnings in assembly files by adding non-executables
stack markings. This fixes at least systemd build which uses '-Wl,--fatal-warnings':
https://github.com/systemd/systemd/issues/24226
Diffstat (limited to 'gnuefi/crt0-efi-ia64.S')
-rw-r--r-- | gnuefi/crt0-efi-ia64.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnuefi/crt0-efi-ia64.S b/gnuefi/crt0-efi-ia64.S index cd00b8d..38af615 100644 --- a/gnuefi/crt0-efi-ia64.S +++ b/gnuefi/crt0-efi-ia64.S @@ -85,3 +85,7 @@ _start_plabel: data4 12 // Block Size (2*4+2*2), must be aligned by 32 Bits data2 (IMAGE_REL_BASED_DIR64<<12) + 0 // reloc for plabel's entry point data2 (IMAGE_REL_BASED_DIR64<<12) + 8 // reloc for plabel's global pointer + +#if defined(__ELF__) && defined(__linux__) + .section .note.GNU-stack,"",%progbits +#endif |