2018-06-06 21:56:51 +08:00
|
|
|
// REQUIRES: x86
|
2016-05-09 23:25:54 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
2018-07-03 01:48:23 +08:00
|
|
|
// RUN: ld.lld %t.o -o /dev/null -shared
|
2016-05-09 23:25:54 +08:00
|
|
|
// 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
|