Files
clang-p2996/lld/test/elf/X86_64/multi-weak-layout.test
Shankar Easwaran 7915ff34b7 [lld][LinkingContext][ELF] Allow different output file types.
This adds an option --output-filetype that can be set to either
YAML/Native(case insensitive). The linker would create the outputs
associated with the type specified by the user.

Changes all the tests to use the new option.

llvm-svn: 191183
2013-09-23 04:24:15 +00:00

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]]