[PATCH] D150859: [llvm-objcopy][ELF] Preserve sh_link to .symtab when applicable

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 00:58:15 PDT 2023


jhenderson accepted this revision.
jhenderson added a comment.

One question; otherwise looks good.



================
Comment at: llvm/test/tools/llvm-objcopy/ELF/symtab-link.test:22
+# RUN: llvm-objcopy --strip-symbol baz %t %t6
+# RUN: llvm-readobj --sections %t6 | FileCheck %s --check-prefix=LINK-0
+## Re-order symbols.
----------------
I'm probably missing something, but why does stripping the last symbol result in an index change (and therefore sh_link 0)?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150859/new/

https://reviews.llvm.org/D150859



More information about the llvm-commits mailing list