[PATCH 1/6] gold: Add 2 overloaded functions to copy_reloc.
Cary Coutant
ccoutant@gmail.com
Mon Nov 9 18:37:00 GMT 2015
> * copy-relocs.h (Copy_relocs::copy_reloc): New declaration of overloaded function.
> (Copy_relocs::save): Likewise.
> * copy-relocs.cc (Copy_relocs::copy_reloc): New definition of overloaded function.
> (Copy_relocs::save): Likewise.
Rather than overload the copy_reloc() method, I've chosen to remove
the dependency on the relocation format from the Copy_relocs class
entirely, and update all targets to pass r_type, r_offset, and
r_addend separately.
I've committed the attached patch.
-cary
2015-11-09 Cary Coutant <ccoutant@gmail.com>
Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
gold/
* copy-relocs.h (Copy_relocs::copy_reloc): Replace reloc parameter
with type, offset, addend.
(Copy_relocs::save): Likewise.
* copy-relocs.cc (Copy_relocs::copy_reloc): Likewise.
(Copy_relocs::save): Likewise.
* aarch64.cc (Target_aarch64::copy_reloc): Pass r_type, r_offset,
and r_addend to Copy_relocs::copy_reloc.
* arm.cc (Target_arm::copy_reloc): Likewise.
* i386.cc (Target_i386::copy_reloc): Likewise.
* mips.cc (Target_mips::copy_reloc): Likewise.
* powerpc.cc (Target_powerpc::copy_reloc): Likewise.
* s390.cc (Target_s390::copy_reloc): Likewise.
* sparc.cc (Target_sparc::copy_reloc): Likewise.
* tilegx.cc (Target_tilegx::copy_reloc): Likewise.
* x86_64.cc (Target_x86_64::copy_reloc): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy-reloc.patch
Type: application/octet-stream
Size: 10980 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20151109/2ff00577/attachment.obj>
More information about the Binutils
mailing list