summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/sizeofheaders.s
blob: 6a82442bc93805ab65820bd3a047e71a60ab968d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: echo " SECTIONS {             \
# RUN:          . = SIZEOF_HEADERS;  \
# RUN:          _size = SIZEOF_HEADERS;  \
# RUN:          .text : {*(.text*)} \
# RUN:          }" > %t.script
# RUN: ld.lld -o %t1 --script %t.script %t
# RUN: llvm-objdump -t %t1 | FileCheck %s

#CHECK:      SYMBOL TABLE:
#CHECK-NEXT:  00000000000000e8 .text 00000000 _start
#CHECK-NEXT:  00000000000000e8 *ABS* 00000000 _size

.global _start
_start:
 nop
OpenPOWER on IntegriCloud