[BACK]Return to ldscript CVS log [TXT][DIR] Up to [local] / funnyos / arch / sam7s64

File: [local] / funnyos / arch / sam7s64 / ldscript (download)

Revision 1.1, Fri Nov 9 22:10:09 2007 UTC (16 years, 6 months ago) by init
Branch: MAIN

use ldscript to fine-tune the linker

/*
 * $Id: ldscript,v 1.1 2007/11/09 22:10:09 init Exp $
 */
/*
 * Where to put each section.
 */
SECTIONS
{
	.text : {
		_stext = .;
		*(.text)
		*(.rodata)
		*(.rodata*)
		. = ALIGN(4);
		_etext = .;
	} /* .text */

	/* initialized data (.data) */
	.data : AT (ADDR(.text) + SIZEOF(.text)) {
		_sdata = .;
		*(.vectors)
		*(.data)
		_edata = .;
	} /* .data */

	/* uninitialized data (.bss) */
	.bss (NOLOAD) : {
		. = ALIGN(4);
		_sbss = .;
		*(.bss)
		_ebss = .;
	} /* .bss */

} /* SECTIONS */

end = .;