[llvm] r200818 - Add a test for printing absolute symbols in ELF.
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 4 20:36:48 PST 2014
Author: rafael
Date: Tue Feb 4 22:36:47 2014
New Revision: 200818
URL: http://llvm.org/viewvc/llvm-project?rev=200818&view=rev
Log:
Add a test for printing absolute symbols in ELF.
Added:
llvm/trunk/test/Object/Inputs/absolute.elf-x86-64
Modified:
llvm/trunk/test/Object/nm-trivial-object.test
Added: llvm/trunk/test/Object/Inputs/absolute.elf-x86-64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/absolute.elf-x86-64?rev=200818&view=auto
==============================================================================
Binary files llvm/trunk/test/Object/Inputs/absolute.elf-x86-64 (added) and llvm/trunk/test/Object/Inputs/absolute.elf-x86-64 Tue Feb 4 22:36:47 2014 differ
Modified: llvm/trunk/test/Object/nm-trivial-object.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/nm-trivial-object.test?rev=200818&r1=200817&r2=200818&view=diff
==============================================================================
--- llvm/trunk/test/Object/nm-trivial-object.test (original)
+++ llvm/trunk/test/Object/nm-trivial-object.test Tue Feb 4 22:36:47 2014
@@ -8,6 +8,8 @@ RUN: llvm-nm %p/Inputs/trivial-object-te
RUN: | FileCheck %s -check-prefix ELF
RUN: llvm-nm %p/Inputs/weak.elf-x86-64 \
RUN: | FileCheck %s -check-prefix WEAK-ELF
+RUN: llvm-nm %p/Inputs/absolute.elf-x86-64 \
+RUN: | FileCheck %s -check-prefix ABSOLUTE-ELF
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
RUN: | FileCheck %s -check-prefix macho
RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
@@ -41,6 +43,9 @@ WEAK-ELF: 00000000 W f2
WEAK-ELF: v x1
WEAK-ELF: 00000000 V x2
+ABSOLUTE-ELF: 00000123 a a1
+ABSOLUTE-ELF: 00000123 A a2
+
macho: 00000000 U _SomeOtherFunction
macho: 00000000 T _main
macho: 00000000 U _puts
More information about the llvm-commits
mailing list