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. 4 5# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t 6# RUN: llvm-readelf -x .foo %t | FileCheck %s 7 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 20 21foo: 22bar: 23 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 27.byte 0 28 29.section .foo,"o",@progbits,bar 30.byte 1 31.section .foo,"o",@progbits,bar 32.byte 2 33 34.section .foo,"o",@progbits,bar,unique,0 35.byte 3 36 37.section .foo,"o",@progbits,bar,unique,1 38.byte 4 39.section .foo,"o",@progbits,bar,unique,1 40.byte 5 41 42.section .foo,"Go",@progbits,comdat0,comdat,bar,unique,1 43.byte 6 44 45.section .foo,"Go",@progbits,comdat1,comdat,bar,unique,1 46.byte 7 47.section .foo,"Go",@progbits,comdat1,comdat,bar,unique,1 48.byte 8 49