PATCH: Reject sh_link pointing to discarded section

Alan Modra amodra@bigpond.net.au
Fri Apr 1 01:17:00 GMT 2005


On Thu, Mar 31, 2005 at 04:29:06PM -0800, H. J. Lu wrote:
> I got 2 ia64 .o files with the same linkonce text section, one with
> unwind section and the other without. I think the one without unwind
> section is bad. When linker sees the one without unwind section first,
> the linkonce text section in the other one will be discarded. But
> its unwind section still points to the discarded section and linker
> will crash when trying to set sh_link. This patch will try to use the
> kept section if they have the same size, otherwise, reject it.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list