]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
xfail more cases of complaints about relocs in read-only sections
authorAlan Modra <amodra@gmail.com>
Thu, 7 Jan 2021 13:51:42 +0000 (00:21 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Jan 2021 14:02:10 +0000 (00:32 +1030)
* testsuite/ld-elf/comm-data5.d: xfail targets that complain
about dynamic relocations in read-only sections.
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
* testsuite/ld-elf/ehdr_start.d: Likewise.
* testsuite/ld-scripts/pr22267.d: Likewise.
* testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
pr20995 text.
* testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.

ld/ChangeLog
ld/testsuite/ld-elf/comm-data5.d
ld/testsuite/ld-elf/ehdr_start-shared.d
ld/testsuite/ld-elf/ehdr_start.d
ld/testsuite/ld-elf/sec64k.exp
ld/testsuite/ld-elf/shared.exp
ld/testsuite/ld-scripts/pr22267.d

index b6bfe27682f259d455236d5a6b852d91c0e445cf..934a4d6393ad52a284d472e51f7211ad721ea0af 100644 (file)
@@ -1,3 +1,14 @@
+2021-01-07  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/comm-data5.d: xfail targets that complain
+       about dynamic relocations in read-only sections.
+       * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
+       * testsuite/ld-elf/ehdr_start.d: Likewise.
+       * testsuite/ld-scripts/pr22267.d: Likewise.
+       * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
+       pr20995 text.
+       * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
+
 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
 
        * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
index 18b287d122ba2400032f428b8ab50ea304d2263d..16fc961564141c42948f57729d9b2c35cc312a0e 100644 (file)
@@ -1,6 +1,6 @@
 #source: comm-data5.s
 #ld: 
 #readelf: -r
-#xfail: frv-*-*linux*
+#xfail: frv-*-*linux* lm32-*-linux*
 
 There are no relocations in this file.
index af6bec0a5a77d5fdb4e200951331878972902970..a2a4dcc49758eb2f860615199afbbac960866acc 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -e _start -shared -z notext
 #nm: -n
 #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
-#xfail: cris*-*-* frv-*-* ![check_shared_lib_support] 
+#xfail: bfin-*-* cris*-*-* frv-*-* lm32-*-* ![check_shared_lib_support]
 
 #...
 [0-9a-f]*000 [Adrt] __ehdr_start
index 306c6ad894db1cffe68cf0ae0ed4389458839694..0b7afdf20ca27cbeee8cd02f4e7b16854367c4a1 100644 (file)
@@ -2,7 +2,7 @@
 #ld: -e _start --build-id
 #nm: -n
 #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
-#xfail: frv-*-*
+#xfail: frv-*-* lm32-*-*
 
 #...
 [0-9a-f]*000 [Adrt] __ehdr_start
index 70c467af2a8a022e483aed9f0b50b5c2a1e5ac49..a1856b5bca653748c9df531eb06f86166134d943 100644 (file)
@@ -170,11 +170,13 @@ if [catch { set ofd [open "tmpdir/$test2.d" w] } x] {
 
 # too big for avr, d10v and msp
 # lack of fancy orphan section handling causes overlap on fr30 and iq2000
+# lm32 complains about relocations in read-only sections
 if { ![istarget "d10v-*-*"]
      && ![istarget "avr-*-*"]
      && ![istarget "msp*-*-*"]
      && ![istarget "fr30-*-*"] 
      && ![istarget "iq2000-*-*"]
+     && ![istarget "lm32-*-linux*"]
      && ![istarget "pru-*-*"] } {
     foreach sfile $sfiles { puts $ofd "#source: $sfile" }
     if { [istarget spu*-*-*] } {
index fcf237ac052a7b42131eb571ec00e3a07370b609..6bf49785a5555ff469acebba3bcba8b163255748 100644 (file)
@@ -180,7 +180,7 @@ run_ld_link_tests [list \
          {readelf {-d --wide} textrel.rd}} \
        "textrel.so" \
     ] \
-] "xtensa-*-*"
+] bfin-*-* frv-*-* lm32-*-* xtensa-*-*
 
 # The MIPS backend sets SHF_WRITE, in `mips_elf_create_dynamic_relocation',
 # for any section that has a dynamic relocation attached and consequently
@@ -197,7 +197,7 @@ run_ld_link_tests [list \
         {{ld textrel.map}} \
        "textrel.so" \
     ] \
-] "cris*-*-*" "mips*-*-*"
+] bfin-*-* cris*-*-* frv-*-* lm32-*-* mips*-*-*
 
 # PR ld/20828 check for correct dynamic symbol table entries where:
 # - symbols have been defined with a linker script,
@@ -467,6 +467,8 @@ run_ld_link_tests [list \
 setup_xfail "alpha-*-*" "bfin-*-*" "ia64-*-*" "xtensa-*-*"
 # or don't have .data.rel.ro
 setup_xfail "hppa*64*-*-hpux*" "tic6x-*-*"
+# or complain about relocs in read-only sections
+setup_xfail frv-*-* lm32-*-*
 run_ld_link_tests [list \
     [list \
        "pr20995" \
index f66d4be49c1d149eb1fc2e784fdaa9e51f3579ea..b0bd18ed564f32b618449ed69ccd760d35057641 100644 (file)
@@ -1,5 +1,6 @@
 #ld: -T pr22267.t
 #nm: -n
+#xfail: bfin-*-linux* frv-*-linux*
 
 # Some targets may zero-extend 32-bit address to 64 bits.
 #...