brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 15d7e8f Raw
73 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o %t3# RUN: lldb-test object-file %t | FileCheck %s4 5## Check that we are able to parse ELF files with more than SHN_LORESERVE6## sections. This generates a file that contains 64k sections from7## aaaaaaaa..dddddddd, plus a couple of standard ones (.strtab, etc.)8## Check the number is correct plus the names of a couple of chosen sections.9 10# CHECK: Showing 65540 sections11# CHECK: Name: aaaaaaaa12# CHECK: Name: bbbbbbbb13# CHECK: Name: cccccccc14# CHECK: Name: abcdabcd15# CHECK: Name: dddddddd16 17.macro gen_sections4 x18  .section a\x19  .section b\x20  .section c\x21  .section d\x22.endm23 24.macro gen_sections16 x25  gen_sections4 a\x26  gen_sections4 b\x27  gen_sections4 c\x28  gen_sections4 d\x29.endm30 31.macro gen_sections64 x32  gen_sections16 a\x33  gen_sections16 b\x34  gen_sections16 c\x35  gen_sections16 d\x36.endm37 38.macro gen_sections256 x39  gen_sections64 a\x40  gen_sections64 b\x41  gen_sections64 c\x42  gen_sections64 d\x43.endm44 45.macro gen_sections1024 x46  gen_sections256 a\x47  gen_sections256 b\x48  gen_sections256 c\x49  gen_sections256 d\x50.endm51 52.macro gen_sections4096 x53  gen_sections1024 a\x54  gen_sections1024 b\x55  gen_sections1024 c\x56  gen_sections1024 d\x57.endm58 59.macro gen_sections16384 x60  gen_sections4096 a\x61  gen_sections4096 b\x62  gen_sections4096 c\x63  gen_sections4096 d\x64.endm65 66gen_sections16384 a67gen_sections16384 b68gen_sections16384 c69gen_sections16384 d70 71.global _start72_start:73