[PATCH] D150859: [llvm-objcopy][ELF] Preserve sh_link to .symtab when applicable
Andrew Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 04:10:02 PDT 2023
andrewng created this revision.
andrewng added reviewers: pcc, MaskRay.
Herald added subscribers: hiraditya, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: jhenderson.
Herald added a project: All.
andrewng requested review of this revision.
Herald added a project: LLVM.
This change to llvm-objcopy preserves the ELF section sh_link to .symtab
so long as none of the symbol table indices have been changed.
Previously, any invocation of llvm-objcopy including a "no-op" would
clear any section sh_link to .symtab.
https://reviews.llvm.org/D150859
Files:
lld/test/ELF/icf-safe.s
llvm/lib/ObjCopy/ELF/ELFObject.cpp
llvm/lib/ObjCopy/ELF/ELFObject.h
llvm/test/tools/llvm-objcopy/ELF/symtab-link.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150859.523328.patch
Type: text/x-patch
Size: 7932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/8163df0d/attachment.bin>
More information about the llvm-commits
mailing list