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 /ld | |
parent | 9b1c7dc3a041b6d37f9c80b46778c98c157b393f (diff) | |
download | gdb-36f779c06332319d9dc2d456e098a99b2540cefc.zip gdb-36f779c06332319d9dc2d456e098a99b2540cefc.tar.gz gdb-36f779c06332319d9dc2d456e098a99b2540cefc.tar.bz2 |
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 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index e4d8bee..f9c74bf 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -187,6 +187,7 @@ proc target_defaults_to_execstack {} { || [istarget "loongarch*-*-*"] || [istarget "nios2*-*-*"] || [istarget "powerpc64*-*-*"] + || [istarget "pru*-*-*"] || [istarget "riscv*-*-*"] || [istarget "tilegx*-*-*"] || [istarget "tilepro*-*-*"] } { |