diff options
author | Meador Inge <meadori@codesourcery.com> | 2016-11-23 20:17:20 +0000 |
---|---|---|
committer | Meador Inge <meadori@codesourcery.com> | 2016-11-23 20:17:20 +0000 |
commit | ca975589e5715605e754a4acd4a2d03a924648b7 (patch) | |
tree | 4e613c3ce7077c2239c259d350707e05b461b6b1 /llvm/tools | |
parent | f74d99950d3f3e2f67859d190e404b27adfd41f7 (diff) | |
download | bcm5719-llvm-ca975589e5715605e754a4acd4a2d03a924648b7.tar.gz bcm5719-llvm-ca975589e5715605e754a4acd4a2d03a924648b7.zip |
llvm-nm: Print correct symbol types for init and fini sections
This patch fixes a small bug where symbols defined in the INIT
and FINI sections were incorrectly getting a type of 'n'.
Differential Revision: https://reviews.llvm.org/D26937
llvm-svn: 287803
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index e89d1d31048..8c6fa4ecec7 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -778,6 +778,9 @@ static char getSymbolNMTypeChar(ELFObjectFileBase &Obj, break; case ELF::SHT_NOBITS: return 'b'; + case ELF::SHT_INIT_ARRAY: + case ELF::SHT_FINI_ARRAY: + return 't'; } } |