diff options
author | Nick Clifton <nickc@redhat.com> | 1999-11-18 18:38:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-11-18 18:38:18 +0000 |
commit | f11900d058f9253366aab8f61741eae338e4dc03 (patch) | |
tree | 6330e7385273d2ab303818305535b3b5a935d8e5 /gas/config/tc-mcore.c | |
parent | 078c8694a9d03160f630e006a689e7d1ff559f95 (diff) | |
download | ppe42-binutils-f11900d058f9253366aab8f61741eae338e4dc03.tar.gz ppe42-binutils-f11900d058f9253366aab8f61741eae338e4dc03.zip |
Fix generation of RVA relocs
Diffstat (limited to 'gas/config/tc-mcore.c')
-rw-r--r-- | gas/config/tc-mcore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c index 5f16f8e343..32f3a73f5e 100644 --- a/gas/config/tc-mcore.c +++ b/gas/config/tc-mcore.c @@ -2193,6 +2193,7 @@ tc_gen_reloc (section, fixp) case BFD_RELOC_MCORE_PCREL_IMM8BY4: case BFD_RELOC_MCORE_PCREL_IMM11BY2: case BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2: + case BFD_RELOC_RVA: code = fixp->fx_r_type; break; @@ -2246,7 +2247,8 @@ mcore_force_relocation (fix) fixS * fix; { if ( fix->fx_r_type == BFD_RELOC_VTABLE_INHERIT - || fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY) + || fix->fx_r_type == BFD_RELOC_VTABLE_ENTRY + || fixP->fx_r_type == BFD_RELOC_RVA) return 1; return 0; |