From cfba21c8334a4a53e25c4547b64539af2d9ea66a Mon Sep 17 00:00:00 2001 From: James Molloy Date: Thu, 24 Mar 2016 09:18:09 +0000 Subject: [PATCH] [llvm-nm] Correct -P ELF output Correctly add a space between the address and size when outputting in posix mode (-P). llvm-svn: 264247 --- .../llvm-nm/X86/Inputs/hello.obj.elf-x86_64 | Bin 0 -> 1488 bytes test/tools/llvm-nm/X86/posixELF.test | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 test/tools/llvm-nm/X86/Inputs/hello.obj.elf-x86_64 create mode 100644 test/tools/llvm-nm/X86/posixELF.test diff --git a/test/tools/llvm-nm/X86/Inputs/hello.obj.elf-x86_64 b/test/tools/llvm-nm/X86/Inputs/hello.obj.elf-x86_64 new file mode 100644 index 0000000000000000000000000000000000000000..92a116786bda50874cbcdb794ae7e791f7053af0 GIT binary patch literal 1488 zcmbtS&ubGw6n>l4w$`S^VnL|L_97M9Ar%j{2T2>XIfzIhcoLbUBPrd@%I-?jUc`&o zTmPKiD)_euUcC$Tec5?-m~1`h7iQjj-}||5^6}Y==d~apK|oLF(h`>Fw05bt#%hb| zG)vvi$@g>EKX9Gldh@Mg;y7K64$~~&TPE6Rw>P7er>3{BhtVUop&qWSHy@N55`f#K zpx}6yf>9$_nwy?EouCf2Gjqk`0) zE;OlLo|DSb(&(p2VutJ+riD>EFS~1bq5B6MfHX6B`!3UoL5sfuyShd{FREg~%1si5 z{HsF9m8uZZ^(vaHOkcr|H#6Z2X=;K);{C%MRx+oE`4uE(5T4U~iu85QICjOVUm;>bdN~??&9dd~eUZKUuMaK@= zwB${e=p&oHWBL1*_g}bc{k}jA7prWb=D+5zb1rK7JC*+P>~rDw-(V*=`A&)LTjib* zR!Y9eZRSOHLqEBOqx-S1ZN5MM7n}3g$%QKW7kZbKs`ne&g7QvyKjccj@VA)rch3}k o#l_I2_;dU7!}e!K@QMwbv2u>N8+`o!;HvsJZP5kxyYTz}22wOpf&c&j literal 0 HcmV?d00001 diff --git a/test/tools/llvm-nm/X86/posixELF.test b/test/tools/llvm-nm/X86/posixELF.test new file mode 100644 index 00000000000..6b4e9549612 --- /dev/null +++ b/test/tools/llvm-nm/X86/posixELF.test @@ -0,0 +1,4 @@ +# RUN: llvm-nm -P %p/Inputs/hello.obj.elf-x86_64 | FileCheck %s + +CHECK: main T 0000000000000000 0000000000000000 +CHECK: puts U 0000000000000000