Re: Fix new linker testsuite failures due to rwx segment test problems
authorAlan Modra <amodra@gmail.com>
Sat, 7 May 2022 04:06:15 +0000 (13:36 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 7 May 2022 05:45:20 +0000 (15:15 +0930)
Fix it some more.

bfd/
* elfnn-loongarch.c: Remove commented out elf_backend_* defines.
ld/
* testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Match
arm*.  Delete loongarch.

bfd/elfnn-loongarch.c
ld/testsuite/ld-elf/elf.exp

index 307757f5dd5ab8042cae3e2f8f1849525ec7a068..5b44901b9e098e86e4c5a0faa86c84ffa2c42612 100644 (file)
@@ -125,14 +125,11 @@ struct loongarch_elf_link_hash_table
 #define elf_backend_want_plt_sym 0
 #define elf_backend_plt_alignment 4
 #define elf_backend_can_gc_sections 1
-/* #define elf_backend_can_refcount 1 */
 #define elf_backend_want_got_sym 1
 
 #define elf_backend_got_header_size (GOT_ENTRY_SIZE * 1)
 
 #define elf_backend_want_dynrelro 1
-/* #define elf_backend_rela_normal 1
-#define elf_backend_default_execstack 0 */
 
 /* Generate a PLT header.  */
 
index 6d51d12a655b9ba2451280ff36b12abc42b014ce..ebb5ba090bf90e9afd8044b2513809ccd2241726 100644 (file)
@@ -182,11 +182,10 @@ if { [check_gc_sections_available] && ![istarget "v850-*-*"] } {
 
 proc target_defaults_to_execstack {} {
     if {   [istarget "aarch64*-*-*"]
-       || [istarget "arm-*-*"]
+       || [istarget "arm*-*-*"]
        || [istarget "*-*-nacl"]
        || [istarget "arc*-*-*"]
        || [istarget "ia64*-*-*"]
-       || [istarget "loongarch*-*-*"]
        || [istarget "nios2*-*-*"]
        || [istarget "powerpc64*-*-*"]
        || [istarget "riscv*-*-*"]