summaryrefslogtreecommitdiff
path: root/test/ELF/linkerscript/constructor.s
blob: acb86fd88e2742efe7bc8ab1b302cc9f687b797c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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: ld.lld -o %t1 --script %t.script %t.o

# 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