mythos icon indicating copy to clipboard operation
mythos copied to clipboard

fix alignment in linker script

Open rottaran opened this issue 6 years ago • 0 comments

The kernel's segments have 2MiB alignment and the program headers should show this. Otherwise the system's loader may do stupid things. At the moment there are weird values:

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x00000000000000f0 0x0000000000200000 0x0000000000200000
                 0x0000000000000134 0x0000000000000134  RWE    0x10
  LOAD           0x0000000000000234 0xffffffff81200134 0x0000000000200134
                 0x00000000001446cc 0x00000000001446cc  R E    0x40
  LOAD           0x0000000000145000 0xffffffff81400000 0x0000000000400000
                 0x000000000000d0c0 0x000000000043b240  RW     0x1000

rottaran avatar Nov 07 '19 08:11 rottaran