* Re: Fix new linker testsuite failures due to rwx segment test problems
@ 2022-05-07 9:13 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-05-07 9:13 UTC (permalink / raw)
To: binutils
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.
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 307757f5dd5..5b44901b9e0 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -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. */
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index 6d51d12a655..ebb5ba090bf 100644
--- a/ld/testsuite/ld-elf/elf.exp
+++ b/ld/testsuite/ld-elf/elf.exp
@@ -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*-*-*"]
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-07 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-07 9:13 Fix new linker testsuite failures due to rwx segment test problems Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).