LLD's error messages contain line numbers, function names or section names. Currently they are formatter as follows. foo.c (32): symbol 'foo' not found foo.c (function bar): symbol 'foo' not found foo.c (.text+0x1234): symbol 'foo' not found This patch changes them so that they are consistent with Clang's output. foo.c:32: symbol 'foo' not found foo.c:(function bar): symbol 'foo' not found foo.c:(.text+0x1234): symbol 'foo' not found Differential Revision: https://reviews.llvm.org/D26901 llvm-svn: 287537
20 lines
497 B
ArmAsm
20 lines
497 B
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
# RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
|
|
|
|
# CHECK: error: {{.*}}:(.data+0x0): undefined symbol 'hidden'
|
|
.global hidden
|
|
.hidden hidden
|
|
|
|
# CHECK: error: {{.*}}:(.data+0x8): undefined symbol 'internal'
|
|
.global internal
|
|
.internal internal
|
|
|
|
# CHECK: error: {{.*}}:(.data+0x10): undefined symbol 'protected'
|
|
.global protected
|
|
.protected protected
|
|
|
|
.section .data, "a"
|
|
.quad hidden
|
|
.quad internal
|
|
.quad protected
|