1 ## Sections are differentiated by the quadruple
2 ## (section_name, group_name, unique_id, link_to_symbol_name).
3 ## Sections sharing the same quadruple are combined into one section.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
6 # RUN: llvm-readelf -x .foo %t | FileCheck %s
8 # CHECK: Hex dump of section '.foo':
9 # CHECK-NEXT: 0x00000000 00
10 # CHECK: Hex dump of section '.foo':
11 # CHECK-NEXT: 0x00000000 0102
12 # CHECK: Hex dump of section '.foo':
13 # CHECK-NEXT: 0x00000000 03
14 # CHECK: Hex dump of section '.foo':
15 # CHECK-NEXT: 0x00000000 0405
16 # CHECK: Hex dump of section '.foo':
17 # CHECK-NEXT: 0x00000000 06
18 # CHECK: Hex dump of section '.foo':
19 # CHECK-NEXT: 0x00000000 0708
24 ## foo and bar are in the same section. However, a section referencing foo
25 ## is considered different from a section referencing bar.
26 .section .foo,"o",@progbits,foo
29 .section .foo,"o",@progbits,bar
31 .section .foo,"o",@progbits,bar
34 .section .foo,"o",@progbits,bar,unique,0
37 .section .foo,"o",@progbits,bar,unique,1
39 .section .foo,"o",@progbits,bar,unique,1
42 .section .foo,"Go",@progbits,comdat0,comdat,bar,unique,1
45 .section .foo,"Go",@progbits,comdat1,comdat,bar,unique,1
47 .section .foo,"Go",@progbits,comdat1,comdat,bar,unique,1