aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/or1k
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-03-22 10:11:21 +0900
committerStafford Horne <shorne@gmail.com>2021-01-14 08:45:01 +0900
commit6ed637c585b1ffb25b9c00c57c3a9ee9955a0df5 (patch)
treea0346ed1f9b5d115229e41a1396fda95967b915d /gcc/config/or1k
parentb77f6d2fa848eca0aa04ff63aaeb52a54522e2aa (diff)
downloadgcc-6ed637c585b1ffb25b9c00c57c3a9ee9955a0df5.zip
gcc-6ed637c585b1ffb25b9c00c57c3a9ee9955a0df5.tar.gz
gcc-6ed637c585b1ffb25b9c00c57c3a9ee9955a0df5.tar.bz2
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.
Diffstat (limited to 'gcc/config/or1k')
-rw-r--r--gcc/config/or1k/linux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/or1k/linux.h b/gcc/config/or1k/linux.h
index 74fbe08..196f3f3 100644
--- a/gcc/config/or1k/linux.h
+++ b/gcc/config/or1k/linux.h
@@ -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 */