deleting relocs, objcopy and BFD

Jose E. Marchesi jose.marchesi@oracle.com
Mon May 1 11:20:00 GMT 2017


    >   - The deletion logic in `merge_gnu_build_notes' then deletes two
    >     internal relocs, leaving 7.  This sounds like a sequence of three
    >     internal relocs gets broken.  I am not sure if this really a problem
    >     (don't know much of mips64) but it is worth a check.
    
    This part of the problem is simply an error in Nick's code, fixed as
    follows.

Ah, nice, thanks.  I thought that if the code was deleting relocs
defined on the same address, they all should be removed, or none.

    I've read over your description of the reloc count problem and am
    not too sure what to do, but my inclination would be to not return a
    count from bfd_canonicalize_reloc and not set one in bfd_set_reloc.
    ie. rely on the sentinel.  That will mean rewriting some code..

I am exploring that approach.



More information about the Binutils mailing list