Added boot_loader.ld file (same as stage2.ld for ppc).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7292 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b747c3b791
commit
90323acc2d
32
src/kernel/ldscripts/ppc/boot_loader.ld
Normal file
32
src/kernel/ldscripts/ppc/boot_loader.ld
Normal file
@ -0,0 +1,32 @@
|
||||
OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
|
||||
OUTPUT_ARCH(powerpc)
|
||||
|
||||
ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x102000 + SIZEOF_HEADERS;
|
||||
|
||||
/* text/read-only data */
|
||||
.text : { *(.text .gnu.linkonce.t.*) }
|
||||
|
||||
__ctor_list = .;
|
||||
.ctors : { *(.ctors) }
|
||||
__ctor_end = .;
|
||||
|
||||
.rodata : { *(.rodata) }
|
||||
|
||||
/* writable data */
|
||||
. = ALIGN(0x1000);
|
||||
__data_start = .;
|
||||
.data : { *(.data .gnu.linkonce.d.*) }
|
||||
|
||||
/* unintialized data (in same segment as writable data) */
|
||||
__bss_start = .;
|
||||
.bss : { *(.bss) }
|
||||
|
||||
. = ALIGN(0x1000);
|
||||
_end = . ;
|
||||
|
||||
/* Strip unnecessary stuff */
|
||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors) }
|
||||
}
|
Loading…
Reference in New Issue
Block a user