[all-commits] [llvm/llvm-project] 86b093: [llvm-readobj] Allow syms from all sections to mat...
James Henderson via All-commits
all-commits at lists.llvm.org
Fri Mar 20 03:56:19 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 86b093d1a18c1d4ccd3578e70e738a0f249ab19e
https://github.com/llvm/llvm-project/commit/86b093d1a18c1d4ccd3578e70e738a0f249ab19e
Author: James Henderson <james.henderson at sony.com>
Date: 2020-03-20 (Fri, 20 Mar 2020)
Changed paths:
M llvm/test/tools/llvm-readobj/ELF/stack-sizes.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readobj] Allow syms from all sections to match stack size entries
Prior to this change, for non-relocatable objects llvm-readobj would
assume that all symbols that corresponded to a stack size section's
entries were in the section specified by the section's sh_link field.
In the presence of an output section description combining
SHF_LINK_ORDER sections linking different output sections, this cannot
be respected, since linker script section patterns are "by name" by
nature. Consequently, the sh_link value would not be correct for all
section entries.
This patch changes llvm-readobj to ignore the section of symbols in a
non-relocatable object.
Fixes https://bugs.llvm.org/show_bug.cgi?id=45228.
Reviewed by: grimar, MaskRay
Differential Revision: https://reviews.llvm.org/D76425
More information about the All-commits
mailing list