1 # This tests the functionality that lld is able to read
2 # init_array/fini_array sections in the input ELF. This
3 # corresponds to the the .init_array/.fini_array sections
6 RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/initfini.o \
7 RUN: --noinhibit-exec --output-filetype=yaml -o %t
11 CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
12 CHECK: section-name: .init_array
14 CHECK: - kind: R_X86_64_64
16 CHECK: target: constructor
18 CHECK: content: [ 00, 00, 00, 00, 00, 00, 00, 00 ]
19 CHECK: section-name: .fini_array
21 CHECK: - kind: R_X86_64_64
23 CHECK: target: destructor