Our ld script is actually closer to the x86 one... this should work.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23530 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-01-15 15:00:00 +00:00
parent cc5d5e7a14
commit ea788fff0c
1 changed files with 10 additions and 21 deletions

View File

@ -2,44 +2,33 @@ OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
OUTPUT_ARCH(m68k)
ENTRY(_start)
SECTIONS
{
. = 0x102000 + SIZEOF_HEADERS;
__text_begin = .;
//. = 0x10000;
. = 0x00080000;
/* text/read-only data */
.text : { *(.text .gnu.linkonce.t.*) }
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.sdata2 : { *(.sdata2) }
/* writable data */
/* align to the same offset in the next page (for performance reasons
(not that it really matters in the boot loader)) */
. = ALIGN(0x1000) + 0x1000 + (. & (0x1000 - 1));
. = ALIGN(0x4);
__ctor_list = .;
.ctors : { *(.ctors) }
__ctor_end = .;
.rodata : { *(.rodata .rodata.*) }
/* writable data */
. = ALIGN(0x1000);
__data_start = .;
.data : { *(.data .gnu.linkonce.d.*) }
.data.rel.ro : { *(.data.rel.ro.local .data.rel.ro*) }
.got : { *(.got .got2) }
.sdata : { *(.sdata .sdata.* .gnu.linkonce.s.*) }
/* unintialized data (in same segment as writable data) */
__bss_start = .;
.sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.*) }
.bss : {
*(.bss .bss.* .gnu.linkonce.b.*)
. = ALIGN(0x1000);
}
.bss : { *(.bss) }
. = ALIGN(0x1000);
_end = . ;
/* Strip unnecessary stuff */
/DISCARD/ : { *(.comment .note .eh_frame .dtors .debug_*) }
/DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }
}