Hacked so gld will accept this so we can purge the aout toolset. This change

should be undone when the m68k-coff cross toolset is updated next time.
This commit is contained in:
Joel Sherrill
1996-04-24 20:05:52 +00:00
parent 1543932387
commit 11532ca435

View File

@@ -21,6 +21,13 @@ MEMORY {
/* /*
* Declare some sizes * Declare some sizes
*/ */
/*
* XXX: The assignment of ". += XyzSize;" fails in older gld's if the
* number used there is not constant so the calculated sizes are
* ignored below and the default number is used instead.
*/
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
StackSize = DEFINED(StackSize) ? StackSize : 0x1000; StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
@@ -29,6 +36,7 @@ StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
*/ */
SECTIONS { SECTIONS {
.text : { .text : {
_RamBase = .;
__RamBase = .; __RamBase = .;
CREATE_OBJECT_SYMBOLS CREATE_OBJECT_SYMBOLS
*(.text) *(.text)
@@ -41,6 +49,7 @@ SECTIONS {
_edata = .; _edata = .;
} >ram } >ram
.bss : { .bss : {
M68Kvec = .;
_M68Kvec = .; _M68Kvec = .;
. += (256 * 4); . += (256 * 4);
clear_start = .; clear_start = .;
@@ -49,13 +58,21 @@ SECTIONS {
. = ALIGN (16); . = ALIGN (16);
_end = .; _end = .;
_HeapStart = .;
__HeapStart = .; __HeapStart = .;
. += HeapSize; /* XXX: Temporary to get around a gld bug
. += StackSize; *
* . += HeapSize;
* . += StackSize;
*/
. += 0x10000; /* XXX */
. += 0x1000; /* XXX */
. = ALIGN (16); . = ALIGN (16);
stack_init = .; stack_init = .;
clear_end = .; clear_end = .;
_WorkspaceBase = .;
__WorkspaceBase = .; __WorkspaceBase = .;
} >ram } >ram
@@ -63,6 +80,7 @@ SECTIONS {
* On-chip memory/peripherals * On-chip memory/peripherals
*/ */
dpram : { dpram : {
m360 = .;
_m360 = .; _m360 = .;
. += (8 * 1024); . += (8 * 1024);
@@ -72,6 +90,7 @@ SECTIONS {
* Boot PROM * Boot PROM
*/ */
rom : { rom : {
_RomBase = .;
__RomBase = .; __RomBase = .;
} >rom } >rom
} }