[PATCH] D82274: [llvm-objcopy] Emit error if removing symbol table referenced by SHT_GROUP section
Georgy Komarov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 21 01:33:39 PDT 2020
jubnzv created this revision.
jubnzv added reviewers: jhenderson, MaskRay, grimar, ikudrin.
Herald added subscribers: llvm-commits, abrachet, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.
SHT_GROUP sections contain a reference to a symbol indicating their "signature" symbol. The symbol table containing this symbol is referred to by the group section's sh_link field. If llvm-objcopy is instructed to remove the symbol table, it will emit an error.
This fixes https://bugs.llvm.org/show_bug.cgi?id=46153.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82274
Files:
llvm/test/tools/llvm-objcopy/ELF/group.test
llvm/tools/llvm-objcopy/ELF/Object.cpp
llvm/tools/llvm-objcopy/ELF/Object.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82274.272296.patch
Type: text/x-patch
Size: 5627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200621/641484a4/attachment.bin>
More information about the llvm-commits
mailing list