diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-11-22 16:36:40 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-01-24 21:49:37 +0000 |
commit | 45e293c9b3359c0a67b27ad13bfe6a6b62916d8d (patch) | |
tree | aadb4d4b0accff9d0ce161f49524b373c33c6158 | |
parent | 66514588776559991675e0959491885f939a0d5f (diff) | |
download | src-45e293c9b3359c0a67b27ad13bfe6a6b62916d8d.tar.gz src-45e293c9b3359c0a67b27ad13bfe6a6b62916d8d.zip |
libsa: Add missing GNU-stack annotations to _setjmp.S.
ld.bfd marks the stack as executable for the crt objects due to the
missing annotations which raises a fatal warning starting with version
2.39.
(cherry picked from commit 69f6399c3733d717bc3dcefda7fcc031f06cef0d)
-rw-r--r-- | stand/libsa/amd64/_setjmp.S | 2 | ||||
-rw-r--r-- | stand/libsa/i386/_setjmp.S | 2 | ||||
-rw-r--r-- | stand/libsa/powerpc/_setjmp.S | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/stand/libsa/amd64/_setjmp.S b/stand/libsa/amd64/_setjmp.S index 53ea6e9b5d52..38f27dc1968d 100644 --- a/stand/libsa/amd64/_setjmp.S +++ b/stand/libsa/amd64/_setjmp.S @@ -90,3 +90,5 @@ ENTRY(_longjmp) 1: movq %rcx,0(%rsp) ret END(_longjmp) + + .section .note.GNU-stack,"",%progbits diff --git a/stand/libsa/i386/_setjmp.S b/stand/libsa/i386/_setjmp.S index 95b0ea8037f5..5766b25816ae 100644 --- a/stand/libsa/i386/_setjmp.S +++ b/stand/libsa/i386/_setjmp.S @@ -75,3 +75,5 @@ ENTRY(_longjmp) 1: movl %ecx,0(%esp) ret END(_longjmp) + + .section .note.GNU-stack,"",%progbits diff --git a/stand/libsa/powerpc/_setjmp.S b/stand/libsa/powerpc/_setjmp.S index 485050f003a1..c36f2e6a6b87 100644 --- a/stand/libsa/powerpc/_setjmp.S +++ b/stand/libsa/powerpc/_setjmp.S @@ -115,3 +115,5 @@ ASENTRY_NOPROF(_longjmp) mr 3, 4 blr ASEND(_longjmp) + + .section .note.GNU-stack,"",%progbits |