summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/constructor.s
blob: 3fb7143b722247a2ccf8b4df08f7ba9b4ebd8c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "SECTIONS { foo : { *(.foo) CONSTRUCTORS } }" > %t.script

# RUN: llvm-objdump -section-headers %t1 | FileCheck %s
# CHECK:      Sections:
# CHECK-NEXT: Idx Name          Size
# CHECK-NEXT:   0               00000000
# CHECK-NEXT:   1 foo           00000001

.section foo, "a"
.byte 0
OpenPOWER on IntegriCloud