Specifications
34 A Minimal PowerPCª Boot Sequence for
Executing Compiled C Programs
Source Files
DATA_START = DEFINED(DATA_START) ? DATA_START :
(((ADDR(.text) + SIZEOF(.text)) & 0xFFFFFFE0) + 0x00000020);
IMAGE_DATA_START = DEFINED(IMAGE_DATA_START) ? IMAGE_DATA_START :
(((LOADADDR(.text) + SIZEOF(.text)) & 0xFFFFFFE0) + 0x00000020);
.data DATA_START : AT (IMAGE_DATA_START)
{
_final_data_start = .;
*(.data)
*(.data1)
*(.sdata)
*(.sdata2)
*(.got.plt)
*(.got)
*(.dynamic)
*(.fixup);
_final_data_end = .;
}
/* Now save off the start of the data in the image */
_img_data_start = LOADADDR(.data);
/*
* Place bss right after the data section.
*
* We only define one set of location variables for the BSS because
* it doesnÕt actually exist in the image. All we do is go to the
* final location and zero out an appropriate chunk of memory.
*/
.bss (ADDR(.data) + SIZEOF(.data)) :
{
_bss_start = .;
*(.sbss)
*(.scommon)
*(.dynbss)
*(.bss)
*(COMMON) ;
_bss_end = . ;
}
_end = .;
/*
These debug sections are here for information only - theyÕre not going to be
included in the ROM-RAM copy because it only copies .text, .data, and .bss.
*/
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
/* DWARF debug sections */
.debug 0 : {*(.debug)}
.debug_srcinfo 0 : {*(.debug_srcinfo)}
.debug_aranges 0 : {*(.debug_aranges)}