[PATCH][gold] Mips: Correct the definition of _gp and _GLOBAL_OFFSET_TABLE_
Vladimir Radosavljevic
Vladimir.Radosavljevic@imgtec.com
Fri Mar 10 16:55:00 GMT 2017
This patch corrects the definition of _gp and _GLOBAL_OFFSET_TABLE_ symbols.
With this patch, all _gp scope tests from GNU ld testsuite are passing.
Depends on https://sourceware.org/ml/binutils/2017-03/msg00146.html.
Regards,
Vladimir
ChangeLog -
* mips.cc (symbol_refs_local): Return false if a symbol
is from a dynamic object.
(Target_mips::got_section): Make _GLOBAL_OFFSET_TABLE_ STV_HIDDEN.
(Target_mips::set_gp): Refactor. Make _gp STT_NOTYPE and
STB_LOCAL.
(Target_mips::do_finalize_sections): Set _gp after all the checks
for creating .got are done.
(Target_mips::Scan::global): Remove unused code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_gp_definition.patch
Type: text/x-patch
Size: 6381 bytes
Desc: fix_gp_definition.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20170310/34e5746d/attachment.bin>
More information about the Binutils
mailing list