• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3## _edata points to the end of the last mapped initialized section.
4
5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
6# RUN: ld.lld %t.o -o %t --gc-sections
7# RUN: llvm-objdump -t --section-headers %t | FileCheck %s
8
9# CHECK: .data         00000008 000000000020215c DATA
10
11# CHECK: 0000000000202164 g       .data  0000000000000000 _edata
12
13.text
14.globl _start
15_start:
16.long .data - .
17
18.data
19.quad 0
20
21.globl _edata
22