Fix -mrelocatable
This commit is contained in:
parent
5d85ec2d4e
commit
77fa4d98a8
@ -1,3 +1,9 @@
|
||||
Wed Nov 29 13:00:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||
|
||||
* config/tc-ppc.c (md_apply_fix3): Don't adjust the value for 32
|
||||
bit relocs converted to PC relative relocs. This turned out to
|
||||
add the offset from the beginning of .text twice.
|
||||
|
||||
Tue Nov 28 10:42:36 1995 Ken Raeburn <raeburn@cygnus.com>
|
||||
|
||||
* stabs.c (s_stab_generic): In 's' case, free string from
|
||||
|
@ -4184,10 +4184,8 @@ md_apply_fix3 (fixp, valuep, seg)
|
||||
case BFD_RELOC_32:
|
||||
case BFD_RELOC_CTOR:
|
||||
if (fixp->fx_pcrel)
|
||||
{
|
||||
fixp->fx_r_type = BFD_RELOC_32_PCREL;
|
||||
value += fixp->fx_frag->fr_address + fixp->fx_where;
|
||||
} /* fall through */
|
||||
fixp->fx_r_type = BFD_RELOC_32_PCREL;
|
||||
/* fall through */
|
||||
|
||||
case BFD_RELOC_RVA:
|
||||
case BFD_RELOC_32_PCREL:
|
||||
|
Loading…
x
Reference in New Issue
Block a user