All pastes #153375 Raw Edit

Anonymous

public text v1 · immutable
#153375 ·published 2006-08-29 15:57 UTC
rendered paste body
bash-3.00$ armeb-softfloat-linux-gnu-objdump -xD test2.o

test2.o:     file format elf32-bigarm
test2.o
architecture: arm, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
private flags = 200: [APCS-32] [FPA float format] [software FP]

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         000000e0  00000000  00000000  00000034  2**2
                  CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
  1 .data         00000000  00000000  00000000  00000114  2**0
                  CONTENTS, ALLOC, LOAD, DATA
  2 .bss          00000000  00000000  00000000  00000114  2**0
                  ALLOC
  3 .rodata       00000070  00000000  00000000  00000114  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .comment      00000012  00000000  00000000  00000184  2**0
                  CONTENTS, READONLY
SYMBOL TABLE:
00000000 l    df *ABS*  00000000 test2.c
00000000 l    d  .text  00000000 .text
00000000 l    d  .data  00000000 .data
00000000 l    d  .bss   00000000 .bss
00000000 l    d  .rodata 00000000 .rodata
00000000 l    d  .comment       00000000 .comment
00000000 g     F .text  000000e0 main
00000000         *UND*  00000000 strlen
00000000         *UND*  00000000 printf


Disassembly of section .text:

00000000 <main>:
   0:   e1a0c00d        mov     ip, sp
   4:   e92dd800        stmdb   sp!, {fp, ip, lr, pc}
   8:   e24cb004        sub     fp, ip, #4      ; 0x4
   c:   e24dd064        sub     sp, sp, #100    ; 0x64
  10:   e59f30c0        ldr     r3, [pc, #192]  ; d8 <.text+0xd8>
  14:   e24be070        sub     lr, fp, #112    ; 0x70
  18:   e1a0c003        mov     ip, r3
  1c:   e8bc000f        ldmia   ip!, {r0, r1, r2, r3}
  20:   e8ae000f        stmia   lr!, {r0, r1, r2, r3}
  24:   e8bc000f        ldmia   ip!, {r0, r1, r2, r3}
  28:   e8ae000f        stmia   lr!, {r0, r1, r2, r3}
  2c:   e8bc000f        ldmia   ip!, {r0, r1, r2, r3}
  30:   e8ae000f        stmia   lr!, {r0, r1, r2, r3}
  34:   e89c0007        ldmia   ip, {r0, r1, r2}
  38:   e88e0007        stmia   lr, {r0, r1, r2}
  3c:   e24b3034        sub     r3, fp, #52     ; 0x34
  40:   e3a02000        mov     r2, #0  ; 0x0
  44:   e5832000        str     r2, [r3]
  48:   e2833004        add     r3, r3, #4      ; 0x4
  4c:   e3a02000        mov     r2, #0  ; 0x0
  50:   e5832000        str     r2, [r3]
  54:   e2833004        add     r3, r3, #4      ; 0x4
  58:   e3a02000        mov     r2, #0  ; 0x0
  5c:   e5832000        str     r2, [r3]
  60:   e2833004        add     r3, r3, #4      ; 0x4
  64:   e3a02000        mov     r2, #0  ; 0x0
  68:   e5832000        str     r2, [r3]
  6c:   e2833004        add     r3, r3, #4      ; 0x4
  70:   e3a02000        mov     r2, #0  ; 0x0
  74:   e5832000        str     r2, [r3]
  78:   e2833004        add     r3, r3, #4      ; 0x4
  7c:   e3a02000        mov     r2, #0  ; 0x0
  80:   e5832000        str     r2, [r3]
  84:   e2833004        add     r3, r3, #4      ; 0x4
  88:   e3a02000        mov     r2, #0  ; 0x0
  8c:   e5832000        str     r2, [r3]
  90:   e2833004        add     r3, r3, #4      ; 0x4
  94:   e3a02000        mov     r2, #0  ; 0x0
  98:   e5832000        str     r2, [r3]
  9c:   e2833004        add     r3, r3, #4      ; 0x4
  a0:   e3a02000        mov     r2, #0  ; 0x0
  a4:   e5832000        str     r2, [r3]
  a8:   e2833004        add     r3, r3, #4      ; 0x4
  ac:   e3a02000        mov     r2, #0  ; 0x0
  b0:   e5832000        str     r2, [r3]
  b4:   e24b3070        sub     r3, fp, #112    ; 0x70
  b8:   e1a00003        mov     r0, r3
  bc:   ebfffffe        bl      0 <strlen>
              bc: R_ARM_PC24    strlen
  c0:   e1a03000        mov     r3, r0
  c4:   e59f0010        ldr     r0, [pc, #16]   ; dc <.text+0xdc>
  c8:   e1a01003        mov     r1, r3
  cc:   ebfffffe        bl      0 <printf>
              cc: R_ARM_PC24    printf
  d0:   e24bd00c        sub     sp, fp, #12     ; 0xc
  d4:   e89da800        ldmia   sp, {fp, sp, pc}
  d8:   0000000c        andeq   r0, r0, ip
              d8: R_ARM_ABS32   .rodata
  dc:   00000000        andeq   r0, r0, r0
              dc: R_ARM_ABS32   .rodata
Disassembly of section .rodata:

00000000 <.rodata>:
   0:   7374726c        cmnvc   r4, #-1073741818      ; 0xc0000006
   4:   656e3a20        strvsb  r3, [lr, #-2592]!
   8:   25640a00        strcsb  r0, [r4, #-2560]!
   c:   30313233        eorccs  r3, r1, r3, lsr r2
  10:   34353637        ldrcct  r3, [r5], #-1591
  14:   38393031        ldmccda r9!, {r0, r4, r5, ip, sp}
  18:   32333435        eorccs  r3, r3, #889192448    ; 0x35000000
  1c:   36373839        undefined
  20:   30313233        eorccs  r3, r1, r3, lsr r2
  24:   34353637        ldrcct  r3, [r5], #-1591
  28:   38393031        ldmccda r9!, {r0, r4, r5, ip, sp}
  2c:   32333435        eorccs  r3, r3, #889192448    ; 0x35000000
  30:   36373839        undefined
  34:   30313233        eorccs  r3, r1, r3, lsr r2
  38:   34353637        ldrcct  r3, [r5], #-1591
  3c:   38393031        ldmccda r9!, {r0, r4, r5, ip, sp}
  40:   32333435        eorccs  r3, r3, #889192448    ; 0x35000000
  44:   36373800        ldrcct  r3, [r7], -r0, lsl #16
        ...
Disassembly of section .comment:

00000000 <.comment>:
   0:   00474343        subeq   r4, r7, r3, asr #6
   4:   3a202847        bcc     80a128 <.comment+0x80a128>
   8:   4e552920        cdpmi   9, 5, cr2, cr5, cr0, {1}
   c:   342e312e        strcct  r3, [lr], #-302
  10:   Address 0x00000010 is out of bounds.