[PATCH] Re: Don't relax undefined symbols on ppc.

Alan Modra amodra@gmail.com
Tue Jul 24 07:41:00 GMT 2018


On Mon, Jul 23, 2018 at 08:59:49PM -0700, Douglas B Rupp wrote:
> While I was working in gdb trying to figure this out I noted that
> abfd->filename contained the name of the input object, so I believe your
> contention that abfd is a constant cannot be correct.
> 
> I'm assuming then that toff, which is indeed the symbol index, must be the
> index w.r.t. the symbols in the input object, leading to the uniqueness
> problem.

Yes, abfd can change between one invocation of ppc_elf_relax_section
and the next, but the branch_fixups list starts from scratch each time
too.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list