172062f5744557e270a38192554c3126ea5f97434Tim Northover// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s | llvm-objdump -t - | FileCheck %s 272062f5744557e270a38192554c3126ea5f97434Tim Northover 372062f5744557e270a38192554c3126ea5f97434Tim Northover .text 472062f5744557e270a38192554c3126ea5f97434Tim Northover add w0, w0, w0 572062f5744557e270a38192554c3126ea5f97434Tim Northover 672062f5744557e270a38192554c3126ea5f97434Tim Northover// .wibble should *not* inherit .text's mapping symbol. It's a completely different section. 772062f5744557e270a38192554c3126ea5f97434Tim Northover .section .wibble 872062f5744557e270a38192554c3126ea5f97434Tim Northover add w0, w0, w0 972062f5744557e270a38192554c3126ea5f97434Tim Northover 1072062f5744557e270a38192554c3126ea5f97434Tim Northover// A setion should be able to start with a $d 1172062f5744557e270a38192554c3126ea5f97434Tim Northover .section .starts_data 1272062f5744557e270a38192554c3126ea5f97434Tim Northover .word 42 1372062f5744557e270a38192554c3126ea5f97434Tim Northover 1472062f5744557e270a38192554c3126ea5f97434Tim Northover// Changing back to .text should not emit a redundant $x 1572062f5744557e270a38192554c3126ea5f97434Tim Northover .text 1672062f5744557e270a38192554c3126ea5f97434Tim Northover add w0, w0, w0 1772062f5744557e270a38192554c3126ea5f97434Tim Northover 1872062f5744557e270a38192554c3126ea5f97434Tim Northover// With all those constraints, we want: 1972062f5744557e270a38192554c3126ea5f97434Tim Northover// + .text to have $x at 0 and no others 2072062f5744557e270a38192554c3126ea5f97434Tim Northover// + .wibble to have $x at 0 2172062f5744557e270a38192554c3126ea5f97434Tim Northover// + .starts_data to have $d at 0 2272062f5744557e270a38192554c3126ea5f97434Tim Northover 2372062f5744557e270a38192554c3126ea5f97434Tim Northover 2472062f5744557e270a38192554c3126ea5f97434Tim Northover// CHECK: 00000000 .starts_data 00000000 $d 2572062f5744557e270a38192554c3126ea5f97434Tim Northover// CHECK-NEXT: 00000000 .text 00000000 $x 2672062f5744557e270a38192554c3126ea5f97434Tim Northover// CHECK-NEXT: 00000000 .wibble 00000000 $x 2772062f5744557e270a38192554c3126ea5f97434Tim Northover// CHECK-NOT: ${{[adtx]}} 2872062f5744557e270a38192554c3126ea5f97434Tim Northover 29