mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
RISC-V: Fix DW_CFA_advance_loc relocation.
gas/ChangeLog: 2017-03-02 Kuan-Lin Chen <rufus@andestech.com> * config/tc-riscv.c (md_apply_fix): Set fx_frag and fx_next->fx_frag for CFA_advance_loc relocations.
This commit is contained in:
parent
c1b465c94e
commit
2aece2ba02
@ -1,3 +1,8 @@
|
||||
2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
|
||||
|
||||
* config/tc-riscv.c (md_apply_fix): Set fx_frag and
|
||||
fx_next->fx_frag for CFA_advance_loc relocations.
|
||||
|
||||
2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
|
||||
|
||||
* config/tc-riscv.c (md_apply_fix): Compute the correct offsets
|
||||
|
@ -1966,6 +1966,8 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
|
||||
if (subtype < 0x80 && (subtype & 0x40))
|
||||
{
|
||||
/* DW_CFA_advance_loc */
|
||||
fixP->fx_frag = (fragS *) fixP->fx_frag->fr_opcode;
|
||||
fixP->fx_next->fx_frag = fixP->fx_frag;
|
||||
fixP->fx_r_type = BFD_RELOC_RISCV_SET6;
|
||||
fixP->fx_next->fx_r_type = BFD_RELOC_RISCV_SUB6;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user