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)
|
||||
*(.gnu.linkonce.r*)
|
||||
_erodata = ALIGN( 0x10 ) ;
|
||||
|
||||
. = ALIGN (16);
|
||||
etext = .;
|
||||
_etext = .;
|
||||
} >ram
|
||||
|
||||
@@ -79,6 +79,8 @@ SECTIONS {
|
||||
LONG(0)
|
||||
__DTOR_END__ = .;
|
||||
|
||||
. = ALIGN (16);
|
||||
|
||||
etext = .;
|
||||
_etext = .;
|
||||
} >rom
|
||||
|
||||
@@ -78,6 +78,8 @@ SECTIONS {
|
||||
LONG(0)
|
||||
__DTOR_END__ = .;
|
||||
|
||||
. = ALIGN (16);
|
||||
|
||||
etext = .;
|
||||
_etext = .;
|
||||
} >rom
|
||||
|
||||
Reference in New Issue
Block a user