forked from OSchip/llvm-project
47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
# Test that we are able to layout multiple weak symbols
|
|
# properly
|
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/multiweaksyms.o \
|
|
RUN: --noinhibit-exec -static --output-filetype=yaml -o %t
|
|
RUN: FileCheck %s -check-prefix=WEAKSYMS < %t
|
|
|
|
WEAKSYMS: - ref-name: [[SYMA:[-a-zA-Z0-9_]+]]
|
|
WEAKSYMS: type: data
|
|
WEAKSYMS: references:
|
|
WEAKSYMS: - kind: layout-after
|
|
WEAKSYMS: target: [[SYMB:[-a-zA-Z0-9_]+]]
|
|
WEAKSYMS: - name: myfn2
|
|
WEAKSYMS: scope: global
|
|
WEAKSYMS: type: data
|
|
WEAKSYMS: merge: as-weak
|
|
WEAKSYMS: references:
|
|
WEAKSYMS: - kind: layout-after
|
|
WEAKSYMS: target: [[SYMB]]
|
|
WEAKSYMS: - ref-name: [[SYMB]]
|
|
WEAKSYMS: scope: global
|
|
WEAKSYMS: type: data
|
|
WEAKSYMS: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
|
|
WEAKSYMS: references:
|
|
WEAKSYMS: - kind: R_X86_64_64
|
|
WEAKSYMS: target: test
|
|
WEAKSYMS: - kind: layout-before
|
|
WEAKSYMS: target: [[SYMA]]
|
|
WEAKSYMS: - kind: layout-after
|
|
WEAKSYMS: target: [[SYMC:[-a-zA-Z0-9_]+]]
|
|
WEAKSYMS: - name: myfn1
|
|
WEAKSYMS: scope: global
|
|
WEAKSYMS: type: data
|
|
WEAKSYMS: merge: as-weak
|
|
WEAKSYMS: references:
|
|
WEAKSYMS: - kind: layout-after
|
|
WEAKSYMS: target: [[SYMC]]
|
|
WEAKSYMS: - ref-name: [[SYMC]]
|
|
WEAKSYMS: scope: global
|
|
WEAKSYMS: type: data
|
|
WEAKSYMS: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
|
|
WEAKSYMS: references:
|
|
WEAKSYMS: - kind: R_X86_64_64
|
|
WEAKSYMS: target: test
|
|
WEAKSYMS: - kind: layout-before
|
|
WEAKSYMS: target: [[SYMB]]
|