mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
Fix up vtable entry relocs
This commit is contained in:
parent
2735a32765
commit
c8d259f7df
@ -1,3 +1,8 @@
|
||||
1999-07-30 Catherine Moore <clm@cygnus.com>
|
||||
|
||||
* config/tc-arm.c (tc_gen_reloc): Record the vtable entry in
|
||||
the relocation's section offset.
|
||||
|
||||
1999-07-29 Alan Modra <alan@spri.levels.unisa.edu.au>
|
||||
|
||||
* write.c (fixup_segment): Fix generic error check overflow test.
|
||||
|
@ -6000,6 +6000,11 @@ tc_gen_reloc (section, fixp)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* HACK: Since arm ELF uses Rel instead of Rela, encode the
|
||||
vtable entry to be used in the relocation's section offset. */
|
||||
if (fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
||||
reloc->address = fixp->fx_offset;
|
||||
|
||||
return reloc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user