This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GOLD] PowerPC64 identical code folding


On Tue, Mar 12, 2013 at 10:50:29AM +1030, Alan Modra wrote:
> 	* gc.h (gc_process_relocs): Look through function descriptors
> 	to determine shndx, symvalue and addend used by ICF.  Tidy
> 	variable duplication.

On testing this with more than the gold testsuite, I discovered that
--icf on PowerPC64 is quite broken.  We can't call function_location()
for a symbol defined in some object for which do_read_relocs() hasn't
been called;  The .opd info for that object isn't yet set up.

It looks like I'll need to translate shndx, symvalue and addend in
icf.cc.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]