[PATCH] D96930: [elfabi] Fix a bug when elfabi is supplied with an empty symbol table

Haowei Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 17 20:30:40 PST 2021


haowei created this revision.
haowei added reviewers: jhenderson, grimar, MaskRay, phosek, mcgrathr.
Herald added a subscriber: hiraditya.
haowei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Before this patch, elfabi wrote 0 to sh_info of the `.dynsym` section it is supplied with a tbe file with an empty symbol table, making the ELF stub file invalid. This patch fixed this issue.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96930

Files:
  llvm/lib/InterfaceStub/ELFObjHandler.cpp
  llvm/test/tools/llvm-elfabi/write-stub-empty-dynsym.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96930.324511.patch
Type: text/x-patch
Size: 3293 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210218/40203271/attachment.bin>


More information about the llvm-commits mailing list