25 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t3 4# RUN: echo "SECTIONS {}" > %t.script5# RUN: ld.lld -o %t1 --script %t.script %t6# RUN: llvm-objdump --section-headers %t1 | FileCheck %s7# CHECK: Sections:8# CHECK-NEXT: Idx Name Size VMA9# CHECK-NEXT: 0 00000000 000000000000000010# CHECK-NEXT: 1 .foo 00000004 000000000000000011# CHECK-NEXT: 2 .boo 00000004 000000000000000412# CHECK-NEXT: 3 .text 00000001 000000000000000813 14.global _start15_start:16 nop17 18.section .foo, "a"19foo:20 .long 021 22.section .boo, "a"23boo:24 .long 025