Page 1 of 1

1MB Linker and GUI bugs?

Posted: Mon Dec 26, 2016 2:47 pm
by Octacone
Could my linker be related to this? I just realized that my kernel is getting loaded at around 1MB barrier, like what!!! Can that make this weird bug appear?
I allocated 1GB to my OS, there should not be any problems with that right?
LinkerBug.png
This is my linker script:

Code: Select all

OUTPUT_FORMAT(elf32-i386)
ENTRY(Start)
SECTIONS
 {
   	. = 1M;
	Kernel_Physical_Address = .;
	.text : AT(ADDR(.text))
	{
		Text_Section_Physical_Address = .;
		*(.Multiboot)
		*(.Text)
	}
	.rodata ALIGN (0x1000) : AT(ADDR(.rodata))
	{
		Rodata_Section_Physical_Address = .;
		*(.rodata)
	}
	.data ALIGN (0x1000) : AT(ADDR(.data))
	{
		Data_Section_Physical_Address = .;
		*(.data)
	}
	.bss : AT(ADDR(.bss))
	{
		BSS_Section_Physical_Address = .;
		*(COMMON)
		*(.bss)
		*(.Bootstrap_Stack)
		Kernel_End = .;
	}
	Kernel_Heap_Start = .; 	
 }

Re: 1MB Linker and GUI bugs?

Posted: Mon Dec 26, 2016 4:12 pm
by Ch4ozz
This happened to me when I overwrote pictures etc which I passed that time as ramdisk with my own kernel because of grub simply loading it to a position I specified in the linkerscript without knowing that qemu loads ramdisks there.
But its your OS, we cant magically know why this bug happens if you dont even show a screenshot without the bug.