diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-05-27 23:09:24 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-11-14 17:42:22 +0200 |
commit | 36f779c06332319d9dc2d456e098a99b2540cefc (patch) | |
tree | 4581c987e33cdea14fa23b47df54211370a0838a /bfd | |
parent | 9b1c7dc3a041b6d37f9c80b46778c98c157b393f (diff) | |
download | binutils-gdb-36f779c06332319d9dc2d456e098a99b2540cefc.tar.gz |
pru: bfd: Correct default to no execstack
Data and instruction memories are strictly separated, so it is not
possible to execute instructions from the stack memory on PRU.
I don't see any difference in testsuite results with or without this
change.
bfd/ChangeLog:
* elf32-pru.c (elf_backend_default_execstack): Define as 0.
ld/ChangeLog:
* testsuite/ld-elf/elf.exp (target_defaults_to_execstack):
Return 0 for pru.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf32-pru.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf32-pru.c b/bfd/elf32-pru.c index 7a75fbd5036..a6ce478f4e2 100644 --- a/bfd/elf32-pru.c +++ b/bfd/elf32-pru.c @@ -1603,6 +1603,8 @@ pru_elf32_link_hash_table_create (bfd *abfd) #define bfd_elf32_bfd_relax_section pru_elf32_relax_section #define elf_backend_can_gc_sections 1 +#define elf_backend_default_execstack 0 + #define TARGET_LITTLE_SYM pru_elf32_vec #define TARGET_LITTLE_NAME "elf32-pru" |