This patch adds the initial ELF/AArch64 support to lld. Only a basic "Hello World" app has been successfully tested for both dynamic and static compiling. Differential Revision: http://reviews.llvm.org/D4778 Patch by Daniel Stewart <stewartd@codeaurora.org>! llvm-svn: 215544
24 lines
894 B
Plaintext
24 lines
894 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 aarch64--linux-gnu %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_AARCH64_ABS64
|
|
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_AARCH64_ABS64
|
|
CHECK: offset: 0
|
|
CHECK: target: destructor
|