Files
clang-p2996/llvm/test/tools/llvm-nm/debug-syms.test
Yvan Roux 241032a205 [llvm-symbolizer][llvm-nm] Fix AArch64 and ARM mapping symbols handling.
Exclude AArch64 mapping symbols ($x and $d) for symtab symbolization as
it was done for ARM since D95916 tom bring 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 which make it work for both targets.

Differential Revision: https://reviews.llvm.org/D98803
2021-03-23 14:17:12 +01:00

46 lines
1.2 KiB
Plaintext

# RUN: yaml2obj %s -o %t.o
# RUN: llvm-nm --debug-syms %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
# RUN: llvm-nm -a %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix SYMBOL
# SYMBOL: 0000000000000000 n $a
# SYMBOL-NEXT: 0000000000000000 n $d
# SYMBOL-NEXT: 0000000000000000 n $t
# SYMBOL-NEXT: 0000000000000000 a file_sym
# SYMBOL-NEXT: 0000000000000000 n section
# RUN: llvm-nm --debug-syms --dynamic %t.o | FileCheck %s --implicit-check-not {{.}} --check-prefix DYNSYM
# DYNSYM: 0000000000000000 N dynglobal
# DYNSYM-NEXT: 0000000000000000 n dynlocal
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_ARM
Sections:
- Name: section
Type: SHT_PROGBITS
Symbols:
- Name: ""
Type: STT_SECTION
Section: section
- Name: file_sym
Type: STT_FILE
Index: SHN_ABS
- Name: $d
Section: section
- Name: $t
Section: section
- Name: $a
Section: section
DynamicSymbols:
- Name: dynlocal
Type: STT_OBJECT
Section: section
- Name: dynglobal
Type: STT_OBJECT
Binding: STB_GLOBAL
Section: section