brintos

brintos / llvm-project-archived public Read only

0
0
Text · 571 B · 43e8fd0 Raw
22 lines · plain
1# REQUIRES: x862 3## Handling of quotes is tricky sometimes. Check we do that right and include4## "foo bar" section into ".data foo" as expected.5 6# RUN: echo '.section "foo bar", "aw"; nop' | llvm-mc -filetype=obj -triple=x86_64 - -o %t.o7# RUN: ld.lld %t.o --script %s -o %t --print-map | FileCheck %s8# RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SEC9# CHECK:      .data foo10# CHECK-NEXT:   {{.*}}(foo bar)11 12# SEC: ]{{  }}.data foo13# SEC: ]{{  }}.data bar14 15SECTIONS {16  " .data foo" : { *("foo bar") }17}18 19OVERWRITE_SECTIONS {20  " .data bar" : { bar = .; }21}22