23 lines · plain
1# REQUIRES: x862## In a relocatable link, don't combine SHF_LINK_ORDER and non-SHF_LINK_ORDER3## like we don't combine SHF_LINK_ORDER with different linked-to sections4## (see linkerscript/linkorder-linked-to.s).5## Test we support adding a non-SHF_LINK_ORDER section as an orphan first.6 7# RUN: llvm-mc -filetype=obj --triple=x86_64 %s -o %t.o8 9# RUN: ld.lld -r %t.o -o %t.ro10# RUN: llvm-readelf -x foo %t.ro | FileCheck %s11 12# CHECK: Hex dump of section 'foo':13# CHECK-NEXT: 0x00000000 010014 15.section foo,"a"16.byte 017 18.section .text,"ax",@progbits19ret20 21.section foo,"ao",@progbits,.text22.byte 123