Skip to content

kOS - kheap bug #1

@kfreezen

Description

@kfreezen

When attempting to load an application that was compiled using a linker script similar to listing 1, findFreeMemory reports an error saying that the header does not have a valid magic number.

Listing 1

OUTPUT_FORMAT(elf32-i386)

ENTRY(_start)
SECTIONS
{ 
  .text 0x08048000 :
  {
    code = .; _code = .; __code = .;
    *(.text)
  }

  .data :
  {
     data = .; _data = .; __data = .;
     *(.data)
     *(.rodata)
  }

  .bss :
  {
    bss = .; _bss = .; __bss = .;
    *(.bss)
  }

  end = .; _end = .; __end = .;
}

Possible fixes:

Unknown
Maybe rewrite the heap code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions