File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
lld/test/ELF/linkerscript Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2
2
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
3
3
# RUN: echo 'foo = _start;' > %t.script
4
4
# RUN: not ld.lld -shared -T %t.script %t.o -o /dev/null 2>&1 | FileCheck %s
5
+ # RUN: not ld.lld -shared --defsym 'foo = _start' %t.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK2
5
6
6
7
## Here we check that symbol 'foo' location is reported properly.
7
8
8
9
# CHECK: error: relocation R_X86_64_PC32 cannot be used against symbol 'foo'
9
10
# CHECK: >>> defined in {{.*}}.script:1
10
11
# CHECK: >>> referenced by {{.*}}.o:(.text+0x1)
11
12
13
+ # CHECK2: error: relocation R_X86_64_PC32 cannot be used against symbol 'foo'
14
+ # CHECK2: >>> defined in --defsym{{$}}
15
+ # CHECK2: >>> referenced by {{.*}}.o:(.text+0x1)
16
+
12
17
.text
13
18
.globl _start
14
19
_start:
You can’t perform that action at this time.
0 commit comments