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:
Joel Sherrill
2000-01-03 17:27:06 +00:00
parent 110136ade4
commit 0af1b73f3c
3 changed files with 5 additions and 1 deletions

View File

@@ -83,8 +83,8 @@ SECTIONS {
_rodata_start = . ;
*(.rodata)
*(.gnu.linkonce.r*)
_erodata = ALIGN( 0x10 ) ;
. = ALIGN (16);
etext = .;
_etext = .;
} >ram

View File

@@ -79,6 +79,8 @@ SECTIONS {
LONG(0)
__DTOR_END__ = .;
. = ALIGN (16);
etext = .;
_etext = .;
} >rom

View File

@@ -78,6 +78,8 @@ SECTIONS {
LONG(0)
__DTOR_END__ = .;
. = ALIGN (16);
etext = .;
_etext = .;
} >rom