Apply alpha BFD_RELOC_8 fixups
authorAlan Modra <amodra@gmail.com>
Mon, 22 Oct 2018 10:00:40 +0000 (20:30 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 22 Oct 2018 12:02:43 +0000 (22:32 +1030)
* config/tc-alpha.c (md_apply_fix): Handle BFD_RELOC_8 for fixups
without a symbol.
* testsuite/gas/all/gas.exp: Don't xfail forward test here..
* testsuite/gas/all/forward.d: ..do so here, removing alpha.

gas/ChangeLog
gas/config/tc-alpha.c
gas/testsuite/gas/all/forward.d
gas/testsuite/gas/all/gas.exp

index 240e078dfba93dcdf0ad6392235e8a52d3a8379f..b0405fa4b856c00ef00f2ffdcc2e6bd46b99e978 100644 (file)
@@ -1,3 +1,10 @@
+2018-10-22  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-alpha.c (md_apply_fix): Handle BFD_RELOC_8 for fixups
+       without a symbol.
+       * testsuite/gas/all/gas.exp: Don't xfail forward test here..
+       * testsuite/gas/all/forward.d: ..do so here, removing alpha.
+
 2018-10-22  Alan Modra  <amodra@gmail.com>
 
        PR 23040
index 7fff858f1be7aff1e34fcf9027dd975122008d08..77918118a7f6f8cbd7c2531e30cc3b9534f30983 100644 (file)
@@ -5769,6 +5769,12 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg)
       md_number_to_chars (fixpos, value, 2);
       break;
 
+    case BFD_RELOC_8:
+      if (fixP->fx_pcrel)
+       fixP->fx_r_type = BFD_RELOC_8_PCREL;
+      size = 1;
+      goto do_reloc_xx;
+
     case BFD_RELOC_16:
       if (fixP->fx_pcrel)
        fixP->fx_r_type = BFD_RELOC_16_PCREL;
index 8e45201c2299608c998a487157cd1acbeefcb6e4..9750133e9efe22fe9026f971bdf98b7c5cfea839 100644 (file)
@@ -1,5 +1,7 @@
 #objdump: -s -j .data
 #name: forward references
+# Some targets don't manage to resolve BFD_RELOC_8 for constants.
+#xfail: *c30-*-* *c4x-*-* d10v-*-* d30v-*-* pdp11-*-* xtensa*-*-*
 
 .*: .*
 
index 74988a1297d220f411b7335208f670fb5c2528fb..4296b14a701fbcee7a46b2bf4ccfb038bbba4f38 100644 (file)
@@ -111,10 +111,6 @@ case $target_triplet in {
     { microblaze-*-* } { }
     { mn10\[23\]00*-*-* } { }
     default {
-       # Some targets don't manage to resolve BFD_RELOC_8 for constants.
-       setup_xfail "alpha*-*-*" "*c30*-*-*" "*c4x*-*-*" \
-           "d\[13\]0v*-*-*" \
-           "pdp11-*-*" "xtensa*-*-*"
        run_dump_test forward
     }
 }
This page took 0.029768 seconds and 4 git commands to generate.