27 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o4# RUN: ld.lld %t.o -o %t --icf=all -shared5# RUN: llvm-readelf --sections --dyn-symbols %t | FileCheck %s6 7# We used to mark bar as absolute.8 9# CHECK: [ 5] .text10# CHECK: [[ADDR:[0-9a-f]+]] 0 NOTYPE GLOBAL DEFAULT 5 foo11# CHECK: [[ADDR]] 0 NOTYPE GLOBAL DEFAULT 5 bar12 13# The nop makes the test more interesting by making the offset of14# text.f non zero.15 16nop17 18 .section .text.f,"ax",@progbits19 .globl foo20foo:21 retq22 23 .section .text.g,"ax",@progbits24 .globl bar25bar:26 retq27