[BACK]Return to kernel.ld CVS log [TXT][DIR] Up to [local] / prex-old / sys / arch / arm / cats

File: [local] / prex-old / sys / arch / arm / cats / kernel.ld (download)

Revision 1.1, Fri Jul 18 20:21:48 2008 UTC (15 years, 11 months ago) by nbrk
Branch: MAIN

first steps to let Prex kernel compile and run on arm-cats platform.
clocks and interrupts subsystems are stubs, but kernel diagnostics messages
work (using serial port 0).
kernel boots and panics in thread_init, but at least it boots and prints something!
it's far more easy and fun to hack code which compiles (:
still more work on the road.

OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(kernel_start)
PHDRS
{
	text PT_LOAD FILEHDR PHDRS;
	data PT_LOAD;
}
SECTIONS
{
	. = 0x02000000 + SIZEOF_HEADERS;

	.text : {
		*(.text)
		*(.glue_7)
		*(.glue_7t)
	} : text = 0xff

	. = ALIGN(4);
	.rodata : {
		*(.rodata)
		*(.rodata.*)
	} : text

	.data ALIGN(4) : {
		*(.data)
	} : data = 0xff

	. = ALIGN(4);
	__bss = . ;
	.bss .    : {
		*(.bss)
		*(COMMON)
	}
	. = ALIGN(4);
	__end = . ;


	/DISCARD/ : { *(.comment .note) }
}