diff options
author | Michael Meissner <gnu@the-meissners.org> | 1995-11-29 18:17:24 +0000 |
---|---|---|
committer | Michael Meissner <gnu@the-meissners.org> | 1995-11-29 18:17:24 +0000 |
commit | 77fa4d98a80a87ae11ab99852efd3807b034c2fa (patch) | |
tree | aef318a4e6b47a502bca02575b188341acbc5e5c /gas | |
parent | 5d85ec2d4e2b5bcc6ea947aea6f28c410eeab8b9 (diff) | |
download | gdb-77fa4d98a80a87ae11ab99852efd3807b034c2fa.zip gdb-77fa4d98a80a87ae11ab99852efd3807b034c2fa.tar.gz gdb-77fa4d98a80a87ae11ab99852efd3807b034c2fa.tar.bz2 |
Fix -mrelocatable
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1070a25..77d314d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 3b66929..f6ec614 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -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: |