forked from Imagelibrary/rtems
Patch from Eric Norum <eric@cls.usask.ca>:
In another attempt to get C++ exceptions working on the gen68360 target
I tried building for the m68k-elf target. All the tools built and
installed properly as did all of RTEMS. No applications would run,
though -- not even hello.exe!
It turns out the problem was in the linker script. The alignment was in
the wrong place.
Here's a patch. Exceptions still don't work, but at least I can get
some things working with the ELF format now.
This commit is contained in:
@@ -83,8 +83,8 @@ SECTIONS {
|
|||||||
_rodata_start = . ;
|
_rodata_start = . ;
|
||||||
*(.rodata)
|
*(.rodata)
|
||||||
*(.gnu.linkonce.r*)
|
*(.gnu.linkonce.r*)
|
||||||
_erodata = ALIGN( 0x10 ) ;
|
|
||||||
|
|
||||||
|
. = ALIGN (16);
|
||||||
etext = .;
|
etext = .;
|
||||||
_etext = .;
|
_etext = .;
|
||||||
} >ram
|
} >ram
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ SECTIONS {
|
|||||||
LONG(0)
|
LONG(0)
|
||||||
__DTOR_END__ = .;
|
__DTOR_END__ = .;
|
||||||
|
|
||||||
|
. = ALIGN (16);
|
||||||
|
|
||||||
etext = .;
|
etext = .;
|
||||||
_etext = .;
|
_etext = .;
|
||||||
} >rom
|
} >rom
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ SECTIONS {
|
|||||||
LONG(0)
|
LONG(0)
|
||||||
__DTOR_END__ = .;
|
__DTOR_END__ = .;
|
||||||
|
|
||||||
|
. = ALIGN (16);
|
||||||
|
|
||||||
etext = .;
|
etext = .;
|
||||||
_etext = .;
|
_etext = .;
|
||||||
} >rom
|
} >rom
|
||||||
|
|||||||
Reference in New Issue
Block a user