2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/map-file2.s -o %t.o
3 # RUN: ld.lld -o %t %t.o -Map=%t.map --script %s
4 # RUN: FileCheck -strict-whitespace %s < %t.map
9 .bbb : AT(0x2000) { *(.bbb.*) }
10 .ccc : AT(0x3000) { *(.ccc.*) }
17 .text : { *(.text.*) }
20 # CHECK: VMA LMA Size Align Out In Symbol
21 # CHECK-NEXT: 0 0 1000 1 . = 0x1000
22 # CHECK-NEXT: 1000 1000 8 1 .aaa
23 # CHECK-NEXT: 1000 1000 8 1 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.aaa)
24 # CHECK-NEXT: 1008 2000 8 1 .bbb
25 # CHECK-NEXT: 1008 2000 8 1 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.bbb)
26 # CHECK-NEXT: 1010 3000 8 1 .ccc
27 # CHECK-NEXT: 1010 3000 8 1 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.ccc)
28 # CHECK-NEXT: 1018 3008 100 1 . += 0x100
29 # CHECK-NEXT: 1118 3108 109 1 .ddd
30 # CHECK-NEXT: 1118 3108 1 1 BYTE(0x11)
31 # CHECK-NEXT: 1119 3109 100 1 . += 0x100
32 # CHECK-NEXT: 1219 3209 8 1 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.ddd)
33 # CHECK-NEXT: 1228 3218 34 8 .eh_frame
34 # CHECK-NEXT: 1228 3218 30 1 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.eh_frame+0x0)
35 # CHECK-NEXT: 125c 324c 1 4 .text
36 # CHECK-NEXT: 125c 324c 1 4 {{.*}}{{/|\\}}map-file2.test.tmp.o:(.text)
37 # CHECK-NEXT: 125c 324c 0 1 _start
38 # CHECK-NEXT: 125c 324c 0 1 f(int)
39 # CHECK-NEXT: 0 0 8 1 .comment
40 # CHECK-NEXT: 0 0 8 1 <internal>:(.comment)
41 # CHECK-NEXT: 0 0 48 8 .symtab
42 # CHECK-NEXT: 0 0 48 8 <internal>:(.symtab)
43 # CHECK-NEXT: 0 0 48 1 .shstrtab
44 # CHECK-NEXT: 0 0 48 1 <internal>:(.shstrtab)
45 # CHECK-NEXT: 0 0 e 1 .strtab
46 # CHECK-NEXT: 0 0 e 1 <internal>:(.strtab)