1# REQUIRES: x86 2 3## Handling of quotes is tricky sometimes. Check we do that right and include 4## "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.o 7# RUN: ld.lld %t.o --script %s -o %t --print-map | FileCheck %s 8# RUN: llvm-readelf -S %t | FileCheck %s --check-prefix=SEC 9# CHECK: .data foo 10# CHECK-NEXT: {{.*}}(foo bar) 11 12# SEC: ]{{ }}.data foo 13# SEC: ]{{ }}.data bar 14 15SECTIONS { 16 " .data foo" : { *("foo bar") } 17} 18 19OVERWRITE_SECTIONS { 20 " .data bar" : { bar = .; } 21} 22