forked from OSchip/llvm-project
22 lines
800 B
Plaintext
22 lines
800 B
Plaintext
# This tests the functionality that lld is able to create
|
|
# init_array/fini_array sections in the output ELF. This
|
|
# corresponds to the the .init_array/.fini_array sections
|
|
# in the output ELF.
|
|
|
|
RUN: lld -flavor gnu -target hexagon %p/Inputs/initfini-option.o \
|
|
RUN: -init init -fini fini --noinhibit-exec --output-filetype=yaml -static -o %t
|
|
RUN: FileCheck %s < %t
|
|
|
|
CHECK: content: [ 00, 00, 00, 00 ]
|
|
CHECK: section-name: .init_array
|
|
CHECK: references:
|
|
CHECK: - kind: R_HEX_32
|
|
CHECK: offset: 0
|
|
CHECK: target: init
|
|
CHECK: content: [ 00, 00, 00, 00 ]
|
|
CHECK: section-name: .fini_array
|
|
CHECK: references:
|
|
CHECK: - kind: R_HEX_32
|
|
CHECK: offset: 0
|
|
CHECK: target: fini
|