Files
clang-p2996/lldb/test/Shell/SymbolFile/dissassemble-entry-point.s
Pat Doyle 4fd48ac9ae [test] Fix dissassemble-entry-point.s for #140187 (#140978)
similar to #140570

getting this error:

exit status 1
ld.lld: error: section '.text' address (0x8074) is smaller than image
base (0x10000); specify --image-base
2025-05-21 20:21:18 -07:00

14 lines
448 B
ArmAsm

# REQUIRES: lld, arm
# RUN: llvm-mc -triple=thumbv7-eabi %s -filetype=obj -o %t.o
# RUN: ld.lld %t.o -o %t --image-base=0x8000 --section-start=.text=0x8074 -e 0x8075 -s
# RUN: %lldb -x -b -o 'dis -s 0x8074 -e 0x8080' -- %t | FileCheck %s
# CHECK: {{.*}}[0x8074] <+0>: movs r0, #0x2a
# CHECK-NEXT: {{.*}}[0x8076] <+2>: movs r7, #0x1
# CHECK-NEXT: {{.*}}[0x8078] <+4>: svc #0x0
_start:
movs r0, #0x2a
movs r7, #0x1
svc #0x0