summaryrefslogtreecommitdiff
path: root/gnuefi/crt0-efi-mips64el.S
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-08-06 11:16:29 +0100
committerNigel Croxon <ncroxon@redhat.com>2022-08-08 11:35:10 -0400
commit803b49c40bb0b720b90d9c31d372911f1b946aa7 (patch)
tree9c8e9bb22bc576f07e19e19be3fce8461b4fc9ee /gnuefi/crt0-efi-mips64el.S
parent2ed6486834634130fe7bc9b8803b0113767fc7c1 (diff)
downloadgnu-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-mips64el.S')
-rw-r--r--gnuefi/crt0-efi-mips64el.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnuefi/crt0-efi-mips64el.S b/gnuefi/crt0-efi-mips64el.S
index 6d26f66..4b2c1b2 100644
--- a/gnuefi/crt0-efi-mips64el.S
+++ b/gnuefi/crt0-efi-mips64el.S
@@ -186,3 +186,7 @@ _pc:
.end _start
.set pop
+
+#if defined(__ELF__) && defined(__linux__)
+ .section .note.GNU-stack,"",%progbits
+#endif