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:
@@ -2,44 +2,33 @@ OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
|
|||||||
OUTPUT_ARCH(m68k)
|
OUTPUT_ARCH(m68k)
|
||||||
|
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
. = 0x102000 + SIZEOF_HEADERS;
|
//. = 0x10000;
|
||||||
|
. = 0x00080000;
|
||||||
__text_begin = .;
|
|
||||||
|
|
||||||
/* text/read-only data */
|
/* text/read-only data */
|
||||||
.text : { *(.text .gnu.linkonce.t.*) }
|
.text : { *(.text .gnu.linkonce.t.*) }
|
||||||
|
|
||||||
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
|
. = ALIGN(0x4);
|
||||||
.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));
|
|
||||||
|
|
||||||
__ctor_list = .;
|
__ctor_list = .;
|
||||||
.ctors : { *(.ctors) }
|
.ctors : { *(.ctors) }
|
||||||
__ctor_end = .;
|
__ctor_end = .;
|
||||||
|
|
||||||
|
.rodata : { *(.rodata .rodata.*) }
|
||||||
|
|
||||||
|
/* writable data */
|
||||||
|
. = ALIGN(0x1000);
|
||||||
__data_start = .;
|
__data_start = .;
|
||||||
.data : { *(.data .gnu.linkonce.d.*) }
|
.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) */
|
/* unintialized data (in same segment as writable data) */
|
||||||
__bss_start = .;
|
__bss_start = .;
|
||||||
.sbss : { *(.sbss .sbss.* .gnu.linkonce.sb.*) }
|
.bss : { *(.bss) }
|
||||||
.bss : {
|
|
||||||
*(.bss .bss.* .gnu.linkonce.b.*)
|
|
||||||
. = ALIGN(0x1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
. = ALIGN(0x1000);
|
||||||
_end = . ;
|
_end = . ;
|
||||||
|
|
||||||
/* Strip unnecessary stuff */
|
/* Strip unnecessary stuff */
|
||||||
/DISCARD/ : { *(.comment .note .eh_frame .dtors .debug_*) }
|
/DISCARD/ : { *(.comment .note .eh_frame .dtors .stab .stabstr .debug*) }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user