1 # Check that if there are no -init/-fini options and _init/_fini symbols
2 # are undefined the linker does not emit DT_INIT/DT_FINI tags.
4 # RUN: yaml2obj -format=elf %s > %t.o
5 # RUN: lld -flavor gnu -target x86_64 -shared --noinhibit-exec -o %t.so %t.o
6 # RUN: llvm-readobj -dynamic-table %t.so | FileCheck %s
8 # CHECK-NOT: 0x000000000000000C INIT 0x{{[0-9A-F]+}}
9 # CHECK-NOT: 0x000000000000000D FINI 0x{{[0-9A-F]+}}
21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]