mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
Apply alpha BFD_RELOC_8 fixups
* 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.
This commit is contained in:
parent
38cf168be5
commit
e1748c54a2
@ -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>
|
2018-10-22 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 23040
|
PR 23040
|
||||||
|
@ -5769,6 +5769,12 @@ md_apply_fix (fixS *fixP, valueT * valP, segT seg)
|
|||||||
md_number_to_chars (fixpos, value, 2);
|
md_number_to_chars (fixpos, value, 2);
|
||||||
break;
|
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:
|
case BFD_RELOC_16:
|
||||||
if (fixP->fx_pcrel)
|
if (fixP->fx_pcrel)
|
||||||
fixP->fx_r_type = BFD_RELOC_16_PCREL;
|
fixP->fx_r_type = BFD_RELOC_16_PCREL;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#objdump: -s -j .data
|
#objdump: -s -j .data
|
||||||
#name: forward references
|
#name: forward references
|
||||||
|
# Some targets don't manage to resolve BFD_RELOC_8 for constants.
|
||||||
|
#xfail: *c30-*-* *c4x-*-* d10v-*-* d30v-*-* pdp11-*-* xtensa*-*-*
|
||||||
|
|
||||||
.*: .*
|
.*: .*
|
||||||
|
|
||||||
|
@ -111,10 +111,6 @@ case $target_triplet in {
|
|||||||
{ microblaze-*-* } { }
|
{ microblaze-*-* } { }
|
||||||
{ mn10\[23\]00*-*-* } { }
|
{ mn10\[23\]00*-*-* } { }
|
||||||
default {
|
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
|
run_dump_test forward
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user