or1k: Add note to indicate execstack
Define TARGET_ASM_FILE_END as file_end_indicate_exec_stack to allow generation of the ".note.GNU-stack" section note. This allows binutils to properly set PT_GNU_STACK in the program header. This fixes a glibc execstack testsuite test failure found while working on the OpenRISC glibc port. gcc/ChangeLog: * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
This commit is contained in:
parent
b77f6d2fa8
commit
6ed637c585
@ -42,4 +42,6 @@
|
||||
%{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}} \
|
||||
%{static-pie:-Bstatic -pie --no-dynamic-linker -z text}"
|
||||
|
||||
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
|
||||
|
||||
#endif /* GCC_OR1K_LINUX_H */
|
||||
|
Loading…
Reference in New Issue
Block a user