mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +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:

committed by
Palmer Dabbelt

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>
|
2017-03-02 Kuan-Lin Chen <rufus@andestech.com>
|
||||||
|
|
||||||
* config/tc-riscv.c (md_apply_fix): Compute the correct offsets
|
* 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))
|
if (subtype < 0x80 && (subtype & 0x40))
|
||||||
{
|
{
|
||||||
/* DW_CFA_advance_loc */
|
/* 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_r_type = BFD_RELOC_RISCV_SET6;
|
||||||
fixP->fx_next->fx_r_type = BFD_RELOC_RISCV_SUB6;
|
fixP->fx_next->fx_r_type = BFD_RELOC_RISCV_SUB6;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user