https://sourceware.org/bugzilla/show_bug.cgi?id=19938

Cary Coutant <ccoutant at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccoutant at gmail dot com

--- Comment #6 from Cary Coutant <ccoutant at gmail dot com> ---
> > That would work, but is there a reason to not simply
> > translate any non-zero sh_link?
> 
> Yes - for OS and Application specific sections the BFD library
> does not know the meaning/interpretation of the sh_link and sh_info
> fields, so it does not know how to translate them.

The sh_link field, when non-zero, is always a section index. It should be
translated if the referenced section is still in the new file, or replaced with
zero if not.

The sh_info field is a section index for SHT_REL and SHT_RELA sections, and for
any section that has the SHF_INFO_LINK flag set. We added that flag
specifically so that tools like objcopy could update the field without knowing
any vendor-specific section types.

-cary

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to