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>
This commit is contained in:
Dimitar Dimitrov 2022-05-27 23:09:24 +03:00
parent 9b1c7dc3a0
commit 36f779c063
2 changed files with 3 additions and 0 deletions

View File

@ -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"

View File

@ -187,6 +187,7 @@ proc target_defaults_to_execstack {} {
|| [istarget "loongarch*-*-*"]
|| [istarget "nios2*-*-*"]
|| [istarget "powerpc64*-*-*"]
|| [istarget "pru*-*-*"]
|| [istarget "riscv*-*-*"]
|| [istarget "tilegx*-*-*"]
|| [istarget "tilepro*-*-*"] } {