1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3// RUN: echo "SECTIONS { \ 4// RUN: .note.a : { *(.note.a) } \ 5// RUN: .b : { *(.b) } \ 6// RUN: .c : { *(.c) } \ 7// RUN: .note.d : { *(.note.d) } \ 8// RUN: }" > %t.script 9// RUN: ld.lld %t.o --script %t.script -o %t 10// RUN: llvm-readobj -l %t | FileCheck %s 11 12// CHECK: Type: PT_NOTE 13// CHECK-NEXT: Offset: 0x1000 14// CHECK-NEXT: VirtualAddress: 0x0 15// CHECK-NEXT: PhysicalAddress: 0x0 16// CHECK-NEXT: FileSize: 8 17// CHECK-NEXT: MemSize: 8 18// CHECK-NEXT: Flags [ 19// CHECK-NEXT: PF_R 20// CHECK-NEXT: ] 21// CHECK-NEXT: Alignment: 1 22// CHECK: Type: PT_NOTE 23// CHECK-NEXT: Offset: 0x1018 24// CHECK-NEXT: VirtualAddress: 0x18 25// CHECK-NEXT: PhysicalAddress: 0x18 26// CHECK-NEXT: FileSize: 8 27// CHECK-NEXT: MemSize: 8 28// CHECK-NEXT: Flags [ 29// CHECK-NEXT: PF_R 30// CHECK-NEXT: ] 31// CHECK-NEXT: Alignment: 1 32 33.section .note.a, "a", @note 34.quad 0 35 36.section .b, "a" 37.quad 0 38 39.section .c, "a" 40.quad 0 41 42.section .note.d, "a", @note 43.quad 0 44