Strange content when debugging some Armv5 assembly code
问题 I am trying to learn ARM by debugging a simple piece of ARM assembly. .global start, stack_top start: ldr sp, =stack_top bl main b . The linker script looks like below: ENTRY(start) SECTIONS { . = 0x10000; .text : {*(.text)} .data : {*(.data)} .bss : {*(.bss)} . = ALIGN(8); . = . +0x1000; stack_top = .; } I run this on qemu arm emulator. The binary is loaded at 0x10000 . So I put a breakpoint there. As soon as the bp is hit. I checked the pc register. It's value is 0x10000 . Then I