csu: Add missing GNU-stack annotations to note object files.

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.
This commit is contained in:
John Baldwin 2022-11-18 12:20:14 -08:00
parent 1f3b4f38a6
commit 74ad8d607d
3 changed files with 6 additions and 0 deletions

View File

@ -47,3 +47,5 @@ __FBSDID("$FreeBSD$");
2: .p2align 2
3: .4byte __FreeBSD_version
4:
.section .note.GNU-stack,"",%progbits

View File

@ -40,3 +40,5 @@ __FBSDID("$FreeBSD$");
2: .p2align 2
3: .4byte 0
4:
.section .note.GNU-stack,"",%progbits

View File

@ -41,3 +41,5 @@ __FBSDID("$FreeBSD$");
2: .p2align 2
3: .4byte 0
4:
.section .note.GNU-stack,"",%progbits