Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program received signal SIGILL, Illegal instruction.
- 0x01cb0204 in os_init() ()
- (gdb) disassemble
- Dump of assembler code for function _Z7os_initv:
- 0x01cb00fc <+0>: push {r4, r5, r6, r7, r8, r9, r11, lr}
- 0x01cb0100 <+4>: add r11, sp, #24
- 0x01cb0104 <+8>: sub sp, sp, #24
- 0x01cb0108 <+12>: ldr r8, [pc, #248] ; 0x1cb0208 <_Z7os_initv+268>
- 0x01cb010c <+16>: ldr r8, [pc, r8]
- 0x01cb0110 <+20>: ldr r0, [r8]
- 0x01cb0114 <+24>: str r0, [sp, #20]
- 0x01cb0118 <+28>: mov r0, #25
- 0x01cb011c <+32>: bl 0x2b1e674 <__ARMv7ABSLongThunk_getauxval>
- 0x01cb0120 <+36>: tst r0, #3
- 0x01cb0124 <+40>: bne 0x1cb0204 <_Z7os_initv+264>
- 0x01cb0128 <+44>: cmp r0, #0
- 0x01cb012c <+48>: beq 0x1cb0204 <_Z7os_initv+264>
- 0x01cb0130 <+52>: ldr r0, [r0]
- 0x01cb0134 <+56>: bl 0x2b1e680 <__ARMv7ABSLongThunk_srand>
- 0x01cb0138 <+60>: mov r1, sp
- 0x01cb013c <+64>: mov r0, #7
- 0x01cb0140 <+68>: bl 0x2b1e68c <__ARMv7ABSLongThunk_getrlimit>
- 0x01cb0144 <+72>: cmp r0, #0
- 0x01cb0148 <+76>: bne 0x1cb01e8 <_Z7os_initv+236>
- 0x01cb014c <+80>: ldm sp, {r6, r7}
- 0x01cb0150 <+84>: ldr r5, [sp, #8]
- 0x01cb0154 <+88>: ldr r0, [sp, #12]
- 0x01cb0158 <+92>: eor r2, r6, r5
- 0x01cb015c <+96>: eor r1, r7, r0
- 0x01cb0160 <+100>: orrs r1, r2, r1
- 0x01cb0164 <+104>: beq 0x1cb01e8 <_Z7os_initv+236>
- --Type <RET> for more, q to quit, c to continue without paging--
- 0x01cb0168 <+108>: and r1, r5, r0
- 0x01cb016c <+112>: mvn r2, #0
- 0x01cb0170 <+116>: subs r4, r1, r2
- 0x01cb0174 <+120>: mov r9, sp
- 0x01cb0178 <+124>: movne r4, r0
- 0x01cb017c <+128>: cmn r1, #1
- 0x01cb0180 <+132>: movne r6, r5
- 0x01cb0184 <+136>: movne r7, r0
- 0x01cb0188 <+140>: moveq r5, #1048576 ; 0x100000
- 0x01cb018c <+144>: subs r0, r5, r6
- 0x01cb0190 <+148>: sbc r1, r4, r7
- 0x01cb0194 <+152>: lsrs r1, r1, #1
- 0x01cb0198 <+156>: rrx r0, r0
- 0x01cb019c <+160>: adds r0, r0, r6
- 0x01cb01a0 <+164>: str r0, [sp]
- 0x01cb01a4 <+168>: adc r0, r1, r7
- 0x01cb01a8 <+172>: str r0, [sp, #4]
- 0x01cb01ac <+176>: mov r0, #7
- 0x01cb01b0 <+180>: mov r1, r9
- 0x01cb01b4 <+184>: bl 0x2b1e698 <__ARMv7ABSLongThunk_setrlimit>
- 0x01cb01b8 <+188>: ldm sp, {r1, r2}
- 0x01cb01bc <+192>: cmp r0, #0
- 0x01cb01c0 <+196>: movne r4, r2
- 0x01cb01c4 <+200>: moveq r7, r2
- 0x01cb01c8 <+204>: moveq r6, r1
- 0x01cb01cc <+208>: adds r2, r6, #1
- 0x01cb01d0 <+212>: adc r3, r7, #0
- 0x01cb01d4 <+216>: cmp r0, #0
- --Type <RET> for more, q to quit, c to continue without paging--
- 0x01cb01d8 <+220>: movne r5, r1
- 0x01cb01dc <+224>: subs r0, r2, r5
- 0x01cb01e0 <+228>: sbcs r0, r3, r4
- 0x01cb01e4 <+232>: bcc 0x1cb018c <_Z7os_initv+144>
- 0x01cb01e8 <+236>: ldr r0, [r8]
- 0x01cb01ec <+240>: ldr r1, [sp, #20]
- 0x01cb01f0 <+244>: subs r0, r0, r1
- 0x01cb01f4 <+248>: moveq r0, #0
- 0x01cb01f8 <+252>: subeq sp, r11, #24
- 0x01cb01fc <+256>: popeq {r4, r5, r6, r7, r8, r9, r11, pc}
- 0x01cb0200 <+260>: bl 0x2b1d90c <__ARMv7ABSLongThunk___stack_chk_fail>
- => 0x01cb0204 <+264>: udf #65006 ; 0xfdee
- 0x01cb0208 <+268>: ldreq r4, [r9], -r12, ror #1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement