Hi, Jonathan Nieder <[email protected]> writes: > echo 5 >/proc/cpu/alignment
After that it indeed dies differently: $ ld.gold -r -o typequery_kmod_8.ko typequery_kmod_8.o Bus error and dmesg has Alignment trap: ld.gold.real (7151) PC=0x0002cd84 Instr=0xe791b000 Address=0x4031d30a FSR 0x001 Program received signal SIGBUS, Bus error. 0x0002cd84 in ?? () (gdb) bt #0 0x0002cd84 in ?? () #1 0x0018f5a8 in ?? () #2 0x00085464 in ?? () #3 0x00194a54 in ?? () #4 0x00182b8c in ?? () #5 0x001c7ea4 in ?? () #6 0x001c8204 in ?? () #7 0x0000ea7c in ?? () #8 0x40201664 in __libc_start_main () from /lib/arm-linux-gnueabi/libc.so.6 #9 0x0000f790 in ?? () Cannot access memory at address 0x0 #10 0x0000f790 in ?? () Cannot access memory at address 0x0 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) x/4i $pc => 0x2cd84: ldr r11, [r1, r0] 0x2cd88: bne 0x2ce48 0x2cd8c: tst r3, #8 0x2cd90: beq 0x2cf20 (gdb) info register r0 0x6 6 r1 0x4031d304 1077007108 r2 0x1 1 r3 0x98 152 r4 0x0 0 r5 0x4 4 r6 0x40028ddc 1073909212 r7 0x2bb6b0 2864816 r8 0x2765a8 2581928 r9 0x2768d8 2582744 r10 0x4032b9fc 1077066236 r11 0x4031d30a 1077007114 r12 0x2 2 sp 0xbeb08e28 0xbeb08e28 lr 0x2cab4 182964 pc 0x2cd84 0x2cd84 cpsr 0x10 16 0x4031d304 + 0x6 is not aligned to 4 bytes so we get the exception. I'll try rebuilding. -Timo -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

