forked from OSchip/llvm-project
parent
64e5f929d0
commit
cc1f10df5f
|
@ -11,6 +11,6 @@ nop
|
|||
|
||||
.globl do
|
||||
.type do,@function
|
||||
do:
|
||||
do:
|
||||
callq foo@PLT
|
||||
callq bar@PLT
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// RUN: .R_ARM_CALL24_callee4 : { *(.R_ARM_CALL24_callee_thumb_high) } } " > %t.script
|
||||
// RUN: ld.lld --script %t.script %t %ttarget -o %t2 2>&1
|
||||
// RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-THUMB %s
|
||||
// RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-ARM %s
|
||||
// RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-ARM %s
|
||||
// REQUIRES: arm
|
||||
// Test BLX instruction is chosen for Thumb BL/BLX instruction and ARM callee
|
||||
// 2 byte nops are used to test the pc-rounding behaviour. As a BLX from a
|
||||
|
|
|
@ -25,7 +25,7 @@ nop
|
|||
|
||||
.globl do
|
||||
.type do,@function
|
||||
do:
|
||||
do:
|
||||
callq foo@PLT
|
||||
callq bar@PLT
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
# CHECK-NEXT: Other: 0
|
||||
# CHECK-NEXT: Section: .text (0x4)
|
||||
# CHECK-NEXT: }
|
||||
# CHECK-NEXT: ]
|
||||
# CHECK-NEXT: ]
|
||||
|
||||
|
||||
## Now export all the foo1, foo2, and foo31 symbols
|
||||
|
@ -91,7 +91,7 @@
|
|||
# CHECK2-NEXT: Other: 0
|
||||
# CHECK2-NEXT: Section: .text (0x4)
|
||||
# CHECK2-NEXT: }
|
||||
# CHECK2-NEXT: ]
|
||||
# CHECK2-NEXT: ]
|
||||
|
||||
.globl foo1
|
||||
foo1:
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
#CHECK: AddressAlignment: 16
|
||||
#CHECK: EntrySize: 0
|
||||
#CHECK: }
|
||||
|
||||
|
||||
.globl _start
|
||||
_start:
|
||||
nop
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
||||
|
||||
# This test case should place input sections in script order:
|
||||
# This test case should place input sections in script order:
|
||||
# .foo.1 .foo.2 .bar.1 .bar.2
|
||||
# RUN: echo "SECTIONS { . = 0x1000; .foo : {*(.foo.*) *(.bar.*) } }" > %t.script
|
||||
# RUN: ld.lld -o %t1 --script %t.script %t
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
||||
|
||||
# Simple symbol assignment. Should raise conflict in case we
|
||||
# Simple symbol assignment. Should raise conflict in case we
|
||||
# have duplicates in any input section, but currently simply
|
||||
# replaces the value.
|
||||
# RUN: echo "SECTIONS {.text : {*(.text.*)} text_end = .;}" > %t.script
|
||||
|
@ -21,14 +21,14 @@
|
|||
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=HIDDEN1 %s
|
||||
# HIDDEN1-NOT: 0000000000000001 *ABS* 00000000 .hidden newsym
|
||||
|
||||
# Provide existing symbol. The value should be 0, even though we
|
||||
# Provide existing symbol. The value should be 0, even though we
|
||||
# have value of 1 in PROVIDE()
|
||||
# RUN: echo "SECTIONS { PROVIDE(somesym = 1);}" > %t.script
|
||||
# RUN: ld.lld -o %t1 --script %t.script %t
|
||||
# RUN: llvm-objdump -t %t1 | FileCheck --check-prefix=PROVIDE2 %s
|
||||
# PROVIDE2: 0000000000000000 *ABS* 00000000 somesym
|
||||
|
||||
# Provide existing symbol. The value should be 0, even though we
|
||||
# Provide existing symbol. The value should be 0, even though we
|
||||
# have value of 1 in PROVIDE(). Visibility should not change
|
||||
# RUN: echo "SECTIONS { PROVIDE(somesym = 1);}" > %t.script
|
||||
# RUN: ld.lld -o %t1 --script %t.script %t
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
.text
|
||||
.globl foo
|
||||
.type foo,@function
|
||||
foo:
|
||||
foo:
|
||||
nop
|
||||
|
||||
.text
|
||||
|
|
|
@ -88,7 +88,7 @@ _start:
|
|||
.word 0x6666
|
||||
rex64
|
||||
call __tls_get_addr@plt
|
||||
|
||||
|
||||
// LD to LE
|
||||
_DTPOFF64_1:
|
||||
.quad tls0@DTPOFF
|
||||
|
|
Loading…
Reference in New Issue