[PATCH] D98803: [llvm-symbolizer][llvm-nm] Fix AArch64 and ARM mapping symbols handling.

Yvan Roux via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 12:01:20 PDT 2021


yroux created this revision.
yroux added reviewers: MaskRay, jhenderson, pcc.
Herald added subscribers: danielkiss, rupprecht, kristof.beyls, emaste.
yroux requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The goal of this patch is exclude AArch64 mapping symbols ($x and $d) for symtab symbolization as it was done for ARM since D95916 <https://reviews.llvm.org/D95916> to bring the bots back to green state.

This is implemented by setting  `SF_FormatSpecific` such that llvm-symbolizer will ignore them, and use this flag to re-implement llvm-nm `--special-syms` option, by doing so it will work on AArch64 and ARM (it wasn't working on the later one since SF_FormatSpecific` symbols were ignored in llvm-nm).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98803

Files:
  llvm/include/llvm/Object/ELFObjectFile.h
  llvm/test/DebugInfo/Symbolize/ELF/aarch64-mapping-symbol.s
  llvm/test/tools/llvm-nm/ARM/special-syms.test
  llvm/tools/llvm-nm/llvm-nm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98803.331333.patch
Type: text/x-patch
Size: 4076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210317/73ad8282/attachment.bin>


More information about the llvm-commits mailing list