Files
clang-p2996/lld/test/elf/X86_64/initfini.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

24 lines
893 B
Plaintext

# This tests the functionality that lld is able to read
# init_array/fini_array sections in the input ELF. This
# corresponds to the the .init_array/.fini_array sections
# in the output ELF.
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \
RUN: --noinhibit-exec --output-filetype=yaml -o %t
RUN: FileCheck %s < %t
CHECK: - type: data
CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
CHECK: section-name: .init_array
CHECK: references:
CHECK: - kind: R_X86_64_64
CHECK: offset: 0
CHECK: target: constructor
CHECK: - type: data
CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
CHECK: section-name: .fini_array
CHECK: references:
CHECK: - kind: R_X86_64_64
CHECK: offset: 0
CHECK: target: destructor