gold: Add support for sparc GOTDATA optimizations in Gold.
authorDavid S. Miller <davem@redhat.com>
Tue, 17 Apr 2012 02:29:46 +0000 (02:29 +0000)
committerDavid S. Miller <davem@redhat.com>
Tue, 17 Apr 2012 02:29:46 +0000 (02:29 +0000)
commit2a1079e885ccac81f0043eec1c2a638d3fdfeed3
treefe788e631dbd55899ac127f5ff14503350a79a26
parent0bc964fc7982793fd7d54dd6017774db1a19e3c6
gold: Add support for sparc GOTDATA optimizations in Gold.

gold/

* sparc.cc (Target_sparc::got_address): New function.
(Sparc_relocate_functions::gdop_hix22): New function.
(Sparc_relocate_functions::gdop_lox10): New function.
(Target_sparc::Scan::local): Do not emit a GOT entry for GOTDATA
relocs.
(Target_sparc::Scan::local): Likewise if the global symbol is not
preemptible and is not IFUNC.
(Target_sparc::Relocate::relocate): Perform GOTDATA code
transformations for local and non-preemptible non-IFUNC global
symbols.
gold/ChangeLog
gold/sparc.cc