28 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o3 4# RUN: echo "SECTIONS { .text : {*(.text)} foo : {*(foo)}}" > %t.script5# RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared6# RUN: llvm-objdump --section-headers %t | FileCheck %s7 8# Test the section order. This is a case where at least with libstdc++'s9# stable_sort we used to get a different result.10 11nop12 13.section foo, "a"14.byte 015 16# CHECK: Idx17# CHECK-NEXT: 018# CHECK-NEXT: 1 .text19# CHECK-NEXT: 2 .dynsym20# CHECK-NEXT: 3 .hash21# CHECK-NEXT: 4 .dynstr22# CHECK-NEXT: 5 foo23# CHECK-NEXT: 6 .dynamic24# CHECK-NEXT: 7 .comment25# CHECK-NEXT: 8 .symtab26# CHECK-NEXT: 9 .shstrtab27# CHECK-NEXT: 10 .strtab28