aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/user_def_init_array_start.s
blob: 6c33166d1d4ef481c0a993900f13a6d09d2f21f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld %t.o -o %t2.so -shared
// Allow user defined __init_array_start. This is used by musl because of the
// the bfd linker not handling these properly. We always create them as
// hidden, musl should not have problems with lld.

        .hidden __init_array_start
        .globl  __init_array_start
__init_array_start:
        .zero   8