iansjack wrote:
Well, if you want to keep it secret that's fine.
I hope you manage to find the solution to your problem.
Huh, like I've mentioned there's nothing much except the multiboot header and the 2 instructions. Its just that I didn't feel like it's worth writing it down (as the code is trivial)
Anyways -
Code:
.code32
.section .text
.globl _start
MB_MAGIC = 0xe85250d6
MB_ARCH = 0
MB_HLEN = mbend - mbstart
MB_CHKSUM = -(MB_MAGIC + MB_HLEN)
.p2align 3
mbstart:
.long MB_MAGIC
.long MB_ARCH
.long MB_HLEN
.long MB_CHKSUM
.word 0
.word 0
.long 8
mbend:
_start:
movl $0xabcdabcd, %eax
hang: jmp hang
EDITI managed to solve the problem. The issue was that the executable was a raw binary (
--oformat=binary set during linking) instead of an elf executable