1// REQUIRES: x86 2// RUN: llvm-mc %s -o %t.o -filetype=obj --triple=x86_64-unknown-linux 3// RUN: ld.lld %t.o -o %t --export-dynamic --gc-sections --icf=all 4// RUN: llvm-readelf -S -s %t | FileCheck %s 5 6// CHECK: part1 7// CHECK: [[P1:[0-9]+]]] .text 8// CHECK: part2 9// CHECK: [[P2:[0-9]+]]] .text 10 11// CHECK: Symbol table '.symtab' 12// CHECK: [[P1]] f1 13// CHECK: [[P2]] f2 14// CHECK: [[P1]] g1 15// CHECK: [[P2]] g2 16 17.section .llvm_sympart.f1,"",@llvm_sympart 18.asciz "part1" 19.quad f1 20 21.section .llvm_sympart.f2,"",@llvm_sympart 22.asciz "part2" 23.quad f2 24 25.section .llvm_sympart.g1,"",@llvm_sympart 26.asciz "part1" 27.quad g1 28 29.section .llvm_sympart.g2,"",@llvm_sympart 30.asciz "part2" 31.quad g2 32 33.section .text.f1,"ax",@progbits 34.globl f1 35f1: 36.byte 1 37 38.section .text.f2,"ax",@progbits 39.globl f2 40f2: 41.byte 2 42 43.section .text.g1,"ax",@progbits 44.globl g1 45g1: 46.byte 3 47 48.section .text.g2,"ax",@progbits 49.globl g2 50g2: 51.byte 3 52