📄 hello.s
字号:
hello: file format elf32-littlearmhelloarchitecture: arm, flags 0x00000112:EXEC_P, HAS_SYMS, D_PAGEDstart address 0x01000000Program Header: LOAD off 0x00008000 vaddr 0x01000000 paddr 0x01000000 align 2**15 filesz 0x00003000 memsz 0x00003000 flags rwxprivate flags = 2: [APCS-32] [FPA float format] [has entry point]Sections:Idx Name Size VMA LMA File off Algn 0 .text 00000068 01000000 01000000 00008000 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .glue_7 00000000 01000068 01000068 00008068 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .glue_7t 00000000 01000068 01000068 00008068 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 3 .data 00001000 01002000 01002000 0000a000 2**4 CONTENTS, ALLOC, LOAD, DATA 4 .bss 00000000 01003000 01003000 0000b000 2**0 ALLOC 5 .debug_abbrev 0000004e 00000000 00000000 0000b000 2**0 CONTENTS, READONLY, DEBUGGING 6 .debug_info 00000149 00000000 00000000 0000b04e 2**0 CONTENTS, READONLY, DEBUGGING 7 .debug_line 00000089 00000000 00000000 0000b197 2**0 CONTENTS, READONLY, DEBUGGING 8 .debug_pubnames 0000001c 00000000 00000000 0000b220 2**0 CONTENTS, READONLY, DEBUGGING 9 .debug_aranges 00000020 00000000 00000000 0000b23c 2**0 CONTENTS, READONLY, DEBUGGINGSYMBOL TABLE:01000000 l d .text 00000000 01000068 l d .glue_7 00000000 01000068 l d .glue_7t 00000000 01002000 l d .data 00000000 01003000 l d .bss 00000000 00000000 l d .debug_abbrev 00000000 00000000 l d .debug_info 00000000 00000000 l d .debug_line 00000000 00000000 l d .debug_pubnames 00000000 00000000 l d .debug_aranges 00000000 00000000 l d *ABS* 00000000 00000000 l d *ABS* 00000000 00000000 l d *ABS* 00000000 00000000 l df *ABS* 00000000 start.S01002000 l .data 00000000 irq_stack00000000 l df *ABS* 00000000 hello.c01000020 l .text 00000000 .gcc2_compiled.01000020 g F .text 0000003c hello01000000 g F .text 00000000 beginDisassembly of section .text:01000000 <begin>: 1000000: e3a000d2 mov r0, #210 ; 0xd2 1000004: e129f000 msr CPSR_fc, r0 1000008: e59fd004 ldr sp, [pc, #4] ; 1000014 <begin+0x14> 100000c: eb000003 bl 1000020 <hello> 1000010: eafffffa b 1000000 <begin> 1000014: 01002000 tsteq r0, r0 1000018: e1a00000 nop (mov r0,r0) 100001c: e1a00000 nop (mov r0,r0)01000020 <hello>:void hello(void){ int i; char * hellostr="helloworld"; long* paddr=(long*)0xfffd001c; 1000020: e1a0c00d mov ip, sp 1000024: e92dd800 stmdb sp!, {fp, ip, lr, pc} 1000028: e24cb004 sub fp, ip, #4 ; 0x4 100002c: e3e01bbf mvn r1, #195584 ; 0x2fc00 1000030: e2411e3e sub r1, r1, #992 ; 0x3e0 1000034: e2411003 sub r1, r1, #3 ; 0x3 for(i=0;i<10;i++) 1000038: e3a02000 mov r2, #0 ; 0x0 100003c: e59f0014 ldr r0, [pc, #20] ; 1000058 <hello+0x38> { * paddr=hellostr[i]; 1000040: e7d03002 ldrb r3, [r0, r2] 1000044: e2822001 add r2, r2, #1 ; 0x1 1000048: e3520009 cmp r2, #9 ; 0x9 100004c: e5813000 str r3, [r1] 1000050: dafffffa ble 1000040 <hello+0x20> } return; } 1000054: e91ba800 ldmdb fp, {fp, sp, pc} 1000058: 0100005c qaddeq r0, ip, r0 100005c: 6c6c6568 cfstr64vs mvdx6, [ip], -#416 1000060: 726f776f rsbvc r7, pc, #29097984 ; 0x1bc0000 1000064: 0000646c andeq r6, r0, ip, ror #8Disassembly of section .glue_7:Disassembly of section .glue_7t:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -