Skip to content

Commit cf6d591

Browse files
committed
Add missing .note.GNU-stack section to lib/ctors.S
Fix link with binutils 2.39 Signed-off-by: Benjamin Herrenschmidt <benh@amazon.com>
1 parent e2f8326 commit cf6d591

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/ctors.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ _fini_array:
4141
_fini_array_end:
4242
.long 0
4343

44+
#if defined(__ELF__) && defined(__linux__)
45+
.section .note.GNU-stack,"",%progbits
46+
#endif

0 commit comments

Comments
 (0)