1// REQUIRES: aarch64
2// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t
3// RUN: ld.lld --just-symbols %t -fix-cortex-a53-843419 -o %t.axf
4// RUN: llvm-readobj --symbols %t.axf | FileCheck %s
5
6// Check that we can gracefully handle --just-symbols, which gives a local
7// absolute mapping symbol (with no Section). Previously we assumed that all
8// mapping symbols were defined relative to a section and assert failed.
9
10        .text
11        .global _start
12        .type _start, %function
13_start: ret
14
15// CHECK:     Name: $x.0
16// CHECK-NEXT:     Value: 0x0
17// CHECK-NEXT:     Size: 0
18// CHECK-NEXT:     Binding: Local (0x0)
19// CHECK-NEXT:     Type: None (0x0)
20// CHECK-NEXT:     Other: 0
21// CHECK-NEXT:     Section: Absolute (0xFFF1)
22// CHECK-NEXT:   }
23