[PATCH] D67998: [llvm-readobj/llvm-readelf]: Dump stack-size entry for all function symbols that have a particular value (fixes PR43245)
Wolfgang Pieb via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 17:15:52 PDT 2019
wolfgangp created this revision.
wolfgangp added reviewers: jhenderson, grimar.
Herald added subscribers: seiya, rupprecht.
It is possible that several function symbols have the same value, for example as a result of linker optimizations such as collapsing of identical functions into one function body. See PR43245 <https://bugs.llvm.org/show_bug.cgi?id=43245>.
This patch fixes readelf/readobj to dump the stack size for all such functions, not just the first one found in the symbol table.
(Note: as part of collapsing the function bodies, the linker has also collapsed the stack size entries).
https://reviews.llvm.org/D67998
Files:
test/tools/llvm-readobj/stack-sizes.test
tools/llvm-readobj/ELFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67998.221626.patch
Type: text/x-patch
Size: 4297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190925/daef581f/attachment.bin>
More information about the llvm-commits
mailing list