[Gold][Powerpc64] Avoid assertion in relocate
Sterling Augustine
saugustine@google.com
Mon May 4 18:38:00 GMT 2015
Hi Cary,
Under certain conditions that have defied my best test-case reduction,
the .debug_addr section can contain references to functions that don't
have pc relative relocations in a .text section, on all architectures.
Due to the way the powerpc64 builds its address tables, these symbols
don't (and shouldn't) get added to its global_entry_table.
This patch from Alan Modra removes an assertion that the entry is
added to the table, and copes with the condition appropriately.
OK for Gold?
Sterling
ChangeLog
2015-05-04 Alan Modra <amodra@gmail.com>
* powerpc.cc (Target_powerpc<size, big_endian>::Relocate::relocate): Handle
address not found instead of asserting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150504/cf9c33c2/attachment.bin>
More information about the Binutils
mailing list