xref: /llvm-project/lld/test/ELF/user_def_init_array_start.s (revision 40a9f2251b75012d1d9ce8f86a834ffef9edfb0f)
1// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3// RUN: ld.lld %t.o -o /dev/null -shared
4// Allow user defined __init_array_start. This is used by musl because of the
5// the bfd linker not handling these properly. We always create them as
6// hidden, musl should not have problems with lld.
7
8        .hidden __init_array_start
9        .globl  __init_array_start
10__init_array_start:
11        .zero   8
12