[llvm-bugs] [Bug 46153] New: Emit error if removing symbol table referenced by SHT_GROUP section
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 1 00:57:20 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46153
Bug ID: 46153
Summary: Emit error if removing symbol table referenced by
SHT_GROUP section
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-objcopy/strip
Assignee: unassignedbugs at nondot.org
Reporter: jh7370.2008 at my.bristol.ac.uk
CC: alexander.v.shaposhnikov at gmail.com,
jake.h.ehrlich at gmail.com,
jh7370.2008 at my.bristol.ac.uk,
llvm-bugs at lists.llvm.org, rupprecht at google.com
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 should emit an error, just like it does for most other section types
referencing a section via the sh_link field.
The problem is that the group section does not use Section class's
removeSectionReferences method, nor does it provide its own safety checking.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200601/6c3e7fec/attachment-0001.html>
More information about the llvm-bugs
mailing list