brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 11b05a6 Raw
34 lines · plain
1# RUN: llvm-mc -triple=riscv32 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s2# RUN: llvm-mc -triple=riscv64 -filetype=obj %s | llvm-readelf -Ss - | FileCheck %s3 4        .text5        nop6 7# .wibble should *not* inherit .text's mapping symbol. It's a completely8# different section.9        .section .wibble10        nop11 12# A section should be able to start with a $d.13        .section .starts_data14        .word 4215 16# Changing back to .text should not emit a redundant $x.17        .text18        nop19 20# With all those constraints, we want:21#   + .text to have $x at 0 and no others22#   + .wibble to have $x at 023#   + .starts_data to have $d at 024 25## Capture section indices.26# CHECK: [[#TEXT:]]] .text27# CHECK: [[#WIBBLE:]]] .wibble28# CHECK: [[#STARTS_DATA:]]] .starts_data29 30# CHECK:    Value  Size Type    Bind   Vis     Ndx              Name31# CHECK: 00000000     0 NOTYPE  LOCAL  DEFAULT [[#TEXT]]        $x{{$}}32# CHECK: 00000000     0 NOTYPE  LOCAL  DEFAULT [[#WIBBLE]]      $x{{$}}33# CHECK: 00000000     0 NOTYPE  LOCAL  DEFAULT [[#STARTS_DATA]] $d{{$}}34