[lld] r370048 - [ELF][ARM] Add --no-show-raw-insn and -soname to some ARM tests
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 04:50:28 PDT 2019
Author: maskray
Date: Tue Aug 27 04:50:27 2019
New Revision: 370048
URL: http://llvm.org/viewvc/llvm-project?rev=370048&view=rev
Log:
[ELF][ARM] Add --no-show-raw-insn and -soname to some ARM tests
Delete some insignificant addresses to make it simpler for layout
changes.
Modified:
lld/trunk/test/ELF/arm-branch-undef-weak-plt-thunk.s
lld/trunk/test/ELF/arm-execute-only.s
lld/trunk/test/ELF/arm-fpic-got.s
lld/trunk/test/ELF/arm-gnu-ifunc-plt.s
lld/trunk/test/ELF/arm-pie-relative.s
lld/trunk/test/ELF/arm-reloc-abs32.s
lld/trunk/test/ELF/arm-sbrel32.s
lld/trunk/test/ELF/arm-thumb-plt-reloc.s
lld/trunk/test/ELF/arm-thumb-thunk-empty-pass.s
lld/trunk/test/ELF/arm-thumb-undefined-weak-narrow.test
lld/trunk/test/ELF/arm-thumb-undefined-weak.s
lld/trunk/test/ELF/arm-tls-gd-nonpreemptible.s
lld/trunk/test/ELF/arm-tls-ldm32.s
lld/trunk/test/ELF/arm-tls-norelax-gd-ie.s
lld/trunk/test/ELF/arm-tls-norelax-gd-le.s
lld/trunk/test/ELF/arm-tls-norelax-ie-le.s
lld/trunk/test/ELF/arm-tls-norelax-ld-le.s
lld/trunk/test/ELF/arm-undefined-weak.s
lld/trunk/test/ELF/pack-dyn-relocs-arm2.s
Modified: lld/trunk/test/ELF/arm-branch-undef-weak-plt-thunk.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-branch-undef-weak-plt-thunk.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-branch-undef-weak-plt-thunk.s (original)
+++ lld/trunk/test/ELF/arm-branch-undef-weak-plt-thunk.s Tue Aug 27 04:50:27 2019
@@ -1,9 +1,9 @@
// REQUIRES: arm
-// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/arm-shared.s -o %t
-// RUN: ld.lld %t --shared -o %t.so
-// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t2
-// RUN: ld.lld %t2 %t.so -o %t3
-// RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi -start-address=69632 -stop-address=69664 %t3 | FileCheck %s
+// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/arm-shared.s -o %t1.o
+// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so
+// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
+// RUN: ld.lld %t.o %t1.so -o %t
+// RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi -start-address=0x11000 -stop-address=0x11020 %t | FileCheck %s
// When we are dynamic linking, undefined weak references have a PLT entry so
// we must create a thunk for the branch to the PLT entry.
Modified: lld/trunk/test/ELF/arm-execute-only.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-execute-only.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-execute-only.s (original)
+++ lld/trunk/test/ELF/arm-execute-only.s Tue Aug 27 04:50:27 2019
@@ -4,9 +4,6 @@
// RUN: ld.lld %t.o -o %t.so -shared
// RUN: llvm-readelf -l %t.so | FileCheck --implicit-check-not=LOAD %s
-// RUN: ld.lld %t.o %t.o -o %t.so -shared
-// RUN: llvm-readelf -l %t.so | FileCheck --implicit-check-not=LOAD %s
-
// RUN: echo ".section .foo,\"ax\"; \
// RUN: bx lr" > %t.s
// RUN: llvm-mc -filetype=obj -triple=armv7-pc-linux %t.s -o %t2.o
Modified: lld/trunk/test/ELF/arm-fpic-got.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-fpic-got.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-fpic-got.s (original)
+++ lld/trunk/test/ELF/arm-fpic-got.s Tue Aug 27 04:50:27 2019
@@ -3,7 +3,7 @@
// RUN: ld.lld %t.o -o %t
// RUN: llvm-readobj -S %t | FileCheck %s
// RUN: llvm-readobj -S --symbols %t | FileCheck -check-prefix=SYMBOLS %s
-// RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t | FileCheck -check-prefix=CODE %s
+// RUN: llvm-objdump -d --no-show-raw-insn -triple=armv7a-none-linux-gnueabi %t | FileCheck -check-prefix=CODE %s
// Test the R_ARM_GOT_PREL relocation
.syntax unified
@@ -55,10 +55,10 @@ val:
// CODE: Disassembly of section .text:
// CODE-EMPTY:
// CODE-NEXT: _start:
-// CODE-NEXT: 11000: 08 00 9f e5 ldr r0, [pc, #8]
-// CODE-NEXT: 11004: 00 00 9f e7 ldr r0, [pc, r0]
-// CODE-NEXT: 11008: 00 00 90 e5 ldr r0, [r0]
-// CODE-NEXT: 1100c: 1e ff 2f e1 bx lr
+// CODE-NEXT: 11000: ldr r0, [pc, #8]
+// CODE-NEXT: 11004: ldr r0, [pc, r0]
+// CODE-NEXT: 11008: ldr r0, [r0]
+// CODE-NEXT: 1100c: bx lr
// CODE: $d.1:
// 0x11004 + 0x0ff4 + 8 = 0x12000 = .got
-// CODE-NEXT: 11010: f4 0f 00 00
+// CODE-NEXT: 11010: f4 0f 00 00
Modified: lld/trunk/test/ELF/arm-gnu-ifunc-plt.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-gnu-ifunc-plt.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-gnu-ifunc-plt.s (original)
+++ lld/trunk/test/ELF/arm-gnu-ifunc-plt.s Tue Aug 27 04:50:27 2019
@@ -1,6 +1,6 @@
// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple=armv7a-linux-gnueabihf %S/Inputs/arm-shared.s -o %t1.o
-// RUN: ld.lld %t1.o --shared -o %t.so
+// RUN: ld.lld %t1.o --shared -soname=t.so -o %t.so
// RUN: llvm-mc -filetype=obj -triple=armv7a-linux-gnueabihf %s -o %t.o
// RUN: ld.lld --hash-style=sysv %t.so %t.o -o %tout
// RUN: llvm-objdump -triple=armv7a-linux-gnueabihf -d --no-show-raw-insn %tout | FileCheck %s --check-prefix=DISASM
Modified: lld/trunk/test/ELF/arm-pie-relative.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-pie-relative.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-pie-relative.s (original)
+++ lld/trunk/test/ELF/arm-pie-relative.s Tue Aug 27 04:50:27 2019
@@ -1,8 +1,8 @@
// REQUIRES: arm
-// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t
-// RUN: ld.lld --hash-style=sysv %t --pie -o %t2
-// RUN: llvm-readobj -r %t2 | FileCheck %s
-// RUN: llvm-objdump -s %t2 | FileCheck %s --check-prefix=GOT
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
+// RUN: ld.lld --hash-style=sysv %t.o --pie -o %t
+// RUN: llvm-readobj -r %t | FileCheck %s
+// RUN: llvm-readelf -x .got %t | FileCheck %s --check-prefix=GOT
// Test that a R_ARM_GOT_BREL relocation with PIE results in a R_ARM_RELATIVE
// dynamic relocation
@@ -21,5 +21,5 @@ sym:
// CHECK-NEXT: Section (4) .rel.dyn {
// CHECK-NEXT: 0x2058 R_ARM_RELATIVE
-// GOT: Contents of section .got:
+// GOT: section '.got':
// GOT-NEXT: 2058 00300000
Modified: lld/trunk/test/ELF/arm-reloc-abs32.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-reloc-abs32.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-reloc-abs32.s (original)
+++ lld/trunk/test/ELF/arm-reloc-abs32.s Tue Aug 27 04:50:27 2019
@@ -13,10 +13,10 @@ _start:
// S + A = 0x124
// CHECK: Disassembly of section .R_ARM_ABS32POS:
// CHECK-EMPTY:
-// CHECK: 11000: 24 01 00 00
+// CHECK: 24 01 00 00
.section .R_ARM_ABS32NEG, "ax",%progbits
.word foo - 0x24
// S = 0x100, A = -0x24
// CHECK: Disassembly of section .R_ARM_ABS32NEG:
// CHECK-EMPTY:
-// CHECK: 11004: dc 00 00 00
+// CHECK: dc 00 00 00
Modified: lld/trunk/test/ELF/arm-sbrel32.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-sbrel32.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-sbrel32.s (original)
+++ lld/trunk/test/ELF/arm-sbrel32.s Tue Aug 27 04:50:27 2019
@@ -33,8 +33,8 @@ foo4: .space 4
// CHECK: Disassembly of section .text:
// CHECK-EMPTY:
// CHECK-NEXT: _start:
-// CHECK-NEXT: 11000: 1e ff 2f e1 bx lr
-// CHECK: 11004: 00 00 00 00 .word 0x00000000
-// CHECK-NEXT: 11008: 04 00 00 00 .word 0x00000004
-// CHECK-NEXT: 1100c: 08 00 00 00 .word 0x00000008
-// CHECK-NEXT: 11010: 0c 00 00 00 .word 0x0000000c
+// CHECK-NEXT: 1e ff 2f e1 bx lr
+// CHECK: 00 00 00 00 .word 0x00000000
+// CHECK-NEXT: 04 00 00 00 .word 0x00000004
+// CHECK-NEXT: 08 00 00 00 .word 0x00000008
+// CHECK-NEXT: 0c 00 00 00 .word 0x0000000c
Modified: lld/trunk/test/ELF/arm-thumb-plt-reloc.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thumb-plt-reloc.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thumb-plt-reloc.s (original)
+++ lld/trunk/test/ELF/arm-thumb-plt-reloc.s Tue Aug 27 04:50:27 2019
@@ -3,9 +3,9 @@
// RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t2
// RUN: ld.lld %t1 %t2 -o %t
// RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t | FileCheck %s
-// RUN: ld.lld --hash-style=sysv -shared %t1 %t2 -o %t3
-// RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t3 | FileCheck -check-prefix=DSO %s
-// RUN: llvm-readobj -S -r %t3 | FileCheck -check-prefix=DSOREL %s
+// RUN: ld.lld --hash-style=sysv -shared %t1 %t2 -o %t.so
+// RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t.so | FileCheck -check-prefix=DSO %s
+// RUN: llvm-readobj -S -r %t.so | FileCheck -check-prefix=DSOREL %s
//
// Test PLT entry generation
.syntax unified
Modified: lld/trunk/test/ELF/arm-thumb-thunk-empty-pass.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thumb-thunk-empty-pass.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thumb-thunk-empty-pass.s (original)
+++ lld/trunk/test/ELF/arm-thumb-thunk-empty-pass.s Tue Aug 27 04:50:27 2019
@@ -1,8 +1,7 @@
// REQUIRES: arm
// RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
// RUN: ld.lld %t -o %t2
-// RUN: llvm-objdump -d %t2 -start-address=69632 -stop-address=69646 -triple=thumbv7a-linux-gnueabihf | FileCheck -check-prefix=CHECK1 %s
-// RUN: llvm-objdump -d %t2 -start-address=16846856 -stop-address=16846874 -triple=thumbv7a-linux-gnueabihf | FileCheck -check-prefix=CHECK2 %s
+// RUN: llvm-objdump -d %t2 -triple=thumbv7a | FileCheck %s
.syntax unified
.global _start, foo
.type _start, %function
@@ -16,16 +15,16 @@ _start:
foo:
bl _start
-// CHECK1: Disassembly of section .text:
-// CHECK1-EMPTY:
-// CHECK1-NEXT: _start:
-// CHECK1-NEXT: 11000: ff f7 fe ff bl #-4
-// CHECK1: __Thumbv7ABSLongThunk__start:
-// CHECK1-NEXT: 11004: ff f7 fc bf b.w #-8 <_start>
+// CHECK: Disassembly of section .text:
+// CHECK-EMPTY:
+// CHECK-NEXT: _start:
+// CHECK-NEXT: 11000: ff f7 fe ff bl #-4
+// CHECK: __Thumbv7ABSLongThunk__start:
+// CHECK-NEXT: 11004: ff f7 fc bf b.w #-8 <_start>
-// CHECK2: __Thumbv7ABSLongThunk__start:
-// CHECK2: 1011008: 41 f2 01 0c movw r12, #4097
-// CHECK2-NEXT: 101100c: c0 f2 01 0c movt r12, #1
-// CHECK2-NEXT: 1011010: 60 47 bx r12
-// CHECK2: foo:
-// CHECK2-NEXT: 1011012: ff f7 f9 ff bl #-14
+// CHECK: __Thumbv7ABSLongThunk__start:
+// CHECK: 1011008: 41 f2 01 0c movw r12, #4097
+// CHECK-NEXT: 101100c: c0 f2 01 0c movt r12, #1
+// CHECK-NEXT: 1011010: 60 47 bx r12
+// CHECK: foo:
+// CHECK-NEXT: 1011012: ff f7 f9 ff bl #-14
Modified: lld/trunk/test/ELF/arm-thumb-undefined-weak-narrow.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thumb-undefined-weak-narrow.test?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thumb-undefined-weak-narrow.test (original)
+++ lld/trunk/test/ELF/arm-thumb-undefined-weak-narrow.test Tue Aug 27 04:50:27 2019
@@ -6,7 +6,7 @@
# CHECK: Disassembly of section .text:
# CHECK-EMPTY:
# CHECK-NEXT:_start:
-# CHECK-NEXT: 11000: ff e7 b #-2
+# CHECK-NEXT: ff e7 b #-2
# Test the R_ARM_THM_JUMP11 relocation (102) to an undefined weak reference
# It should resolve to the next instruction, which is an offset of -2 which
Modified: lld/trunk/test/ELF/arm-thumb-undefined-weak.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-thumb-undefined-weak.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-thumb-undefined-weak.s (original)
+++ lld/trunk/test/ELF/arm-thumb-undefined-weak.s Tue Aug 27 04:50:27 2019
@@ -29,7 +29,6 @@ _start:
// CHECK: Disassembly of section .text:
// CHECK-EMPTY:
-// 69636 = 0x11004
// CHECK: 11000: {{.*}} beq.w #0 <_start+0x4>
// CHECK-NEXT: 11004: {{.*}} b.w #0 <_start+0x8>
// CHECK-NEXT: 11008: {{.*}} bl #0
Modified: lld/trunk/test/ELF/arm-tls-gd-nonpreemptible.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-gd-nonpreemptible.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-gd-nonpreemptible.s (original)
+++ lld/trunk/test/ELF/arm-tls-gd-nonpreemptible.s Tue Aug 27 04:50:27 2019
@@ -3,7 +3,7 @@
// RUN: ld.lld %t -o %t2
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi
// RUN: llvm-objdump -s %t2 | FileCheck %s
-// RUN: ld.lld --hash-style=sysv %t --shared -o %t3.so
+// RUN: ld.lld %t --shared -o %t3.so
// RUN: llvm-objdump -s %t3.so | FileCheck -check-prefix=CHECK-SHARED %s
// For an executable, we write the module index 1 and the offset into the TLS
@@ -68,5 +68,5 @@ x4:
// CHECK-NEXT: 12018 01000000 08000000 01000000 0c000000
// CHECK-SHARED: Contents of section .got:
-// CHECK-SHARED-NEXT: 2050 00000000 00000000 00000000 04000000
-// CHECK-SHARED-NEXT: 2060 00000000 00000000 00000000 00000000
+// CHECK-SHARED-NEXT: 2058 00000000 00000000 00000000 04000000
+// CHECK-SHARED-NEXT: 2068 00000000 00000000 00000000 00000000
Modified: lld/trunk/test/ELF/arm-tls-ldm32.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-ldm32.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-ldm32.s (original)
+++ lld/trunk/test/ELF/arm-tls-ldm32.s Tue Aug 27 04:50:27 2019
@@ -3,6 +3,8 @@
// RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared
// RUN: llvm-readobj -S --dyn-relocations %t.so | FileCheck --check-prefix=SEC %s
// RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t.so | FileCheck %s
+// RUN: ld.lld %t.o -o %t
+// RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t | FileCheck --check-prefix=CHECK-EXE %s
// Test the handling of the local-dynamic TLS model. Dynamic loader finds
// module index R_ARM_TLS_DTPMOD32. The offset in the next GOT slot is 0
@@ -65,11 +67,8 @@ x:
// CHECK-NEXT: 1008: 00 00 00 00
// CHECK-NEXT: 100c: 04 00 00 00
-// CHECK-EXE: Disassembly of section .text:
-// CHECK-EXE-EMPTY:
-// CHECK-NEXT-EXE: _start:
-// CHECK-NEXT-EXE: 11000: 00 f0 20 e3 nop
-
-// CHECK-EXE: 11004: fc 0f 00 00
-// CHECK-EXE: 11008: 00 00 00 00
-// CHECK-EXE: 1100c: 04 00 00 00
+// CHECK-EXE: _start:
+// CHECK-EXE-NEXT: 11000: 00 f0 20 e3 nop
+// CHECK-EXE: 11004: fc 0f 00 00
+// CHECK-EXE-NEXT: 11008: 00 00 00 00
+// CHECK-EXE-NEXT: 1100c: 04 00 00 00
Modified: lld/trunk/test/ELF/arm-tls-norelax-gd-ie.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-norelax-gd-ie.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-norelax-gd-ie.s (original)
+++ lld/trunk/test/ELF/arm-tls-norelax-gd-ie.s Tue Aug 27 04:50:27 2019
@@ -1,6 +1,6 @@
// REQUIRES: arm
-// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1
-// RUN: ld.lld %t1 --shared -o %t1.so
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1.o
+// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi
// RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t
// RUN: llvm-readobj -S --dyn-relocations %t | FileCheck %s
Modified: lld/trunk/test/ELF/arm-tls-norelax-gd-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-norelax-gd-le.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-norelax-gd-le.s (original)
+++ lld/trunk/test/ELF/arm-tls-norelax-gd-le.s Tue Aug 27 04:50:27 2019
@@ -1,6 +1,6 @@
// REQUIRES: arm
-// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1
-// RUN: ld.lld %t1 --shared -o %t1.so
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1.o
+// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi
// RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t
// RUN: llvm-objdump -s %t | FileCheck %s
Modified: lld/trunk/test/ELF/arm-tls-norelax-ie-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-norelax-ie-le.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-norelax-ie-le.s (original)
+++ lld/trunk/test/ELF/arm-tls-norelax-ie-le.s Tue Aug 27 04:50:27 2019
@@ -1,6 +1,6 @@
// REQUIRES: arm
-// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1
-// RUN: ld.lld %t1 --shared -o %t1.so
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1.o
+// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi
// RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t
// RUN: llvm-objdump -s -triple=armv7a-linux-gnueabi %t | FileCheck %s
Modified: lld/trunk/test/ELF/arm-tls-norelax-ld-le.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-tls-norelax-ld-le.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-tls-norelax-ld-le.s (original)
+++ lld/trunk/test/ELF/arm-tls-norelax-ld-le.s Tue Aug 27 04:50:27 2019
@@ -1,6 +1,6 @@
// REQUIRES: arm
-// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1
-// RUN: ld.lld %t1 --shared -o %t1.so
+// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-tls-get-addr.s -o %t1.o
+// RUN: ld.lld %t1.o --shared -soname=t1.so -o %t1.so
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi
// RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t
// RUN: llvm-objdump -s %t | FileCheck %s
Modified: lld/trunk/test/ELF/arm-undefined-weak.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-undefined-weak.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-undefined-weak.s (original)
+++ lld/trunk/test/ELF/arm-undefined-weak.s Tue Aug 27 04:50:27 2019
@@ -29,7 +29,6 @@ _start:
// CHECK: Disassembly of section .text:
// CHECK-EMPTY:
-// 69636 = 0x11004
// CHECK: 11000: {{.*}} b #-4 <_start+0x4>
// CHECK-NEXT: 11004: {{.*}} bl #-4 <_start+0x8>
// blx is transformed into bl so we don't change state
@@ -37,4 +36,3 @@ _start:
// CHECK-NEXT: 1100c: {{.*}} movt r0, #0
// CHECK-NEXT: 11010: {{.*}} movw r0, #0
// CHECK: 11014: {{.*}} .word 0x00000000
-
Modified: lld/trunk/test/ELF/pack-dyn-relocs-arm2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/pack-dyn-relocs-arm2.s?rev=370048&r1=370047&r2=370048&view=diff
==============================================================================
--- lld/trunk/test/ELF/pack-dyn-relocs-arm2.s (original)
+++ lld/trunk/test/ELF/pack-dyn-relocs-arm2.s Tue Aug 27 04:50:27 2019
@@ -1,7 +1,7 @@
// REQUIRES: arm
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-shared.s -o %t.so.o
-// RUN: ld.lld -shared %t.so.o -o %t.so
+// RUN: ld.lld -shared %t.so.o -soname=t.so -o %t.so
// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
// RUN: ld.lld -pie --pack-dyn-relocs=relr %t.o %t.so -o %t.exe
More information about the llvm-commits
mailing list