From 0af1b73f3ca5d11f7ada451e313741b17c501360 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 3 Jan 2000 17:27:06 +0000 Subject: Patch from Eric Norum : 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. --- c/src/lib/libbsp/m68k/gen68360/startup/linkcmds | 2 +- c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp | 2 ++ c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'c/src/lib') diff --git a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds index 9d0899b5af..833af57579 100644 --- a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds +++ b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds @@ -83,8 +83,8 @@ SECTIONS { _rodata_start = . ; *(.rodata) *(.gnu.linkonce.r*) - _erodata = ALIGN( 0x10 ) ; + . = ALIGN (16); etext = .; _etext = .; } >ram diff --git a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp index 273d997877..e89ea38e86 100644 --- a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp +++ b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp @@ -79,6 +79,8 @@ SECTIONS { LONG(0) __DTOR_END__ = .; + . = ALIGN (16); + etext = .; _etext = .; } >rom diff --git a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom index d459f5e922..b816761852 100644 --- a/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom +++ b/c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom @@ -78,6 +78,8 @@ SECTIONS { LONG(0) __DTOR_END__ = .; + . = ALIGN (16); + etext = .; _etext = .; } >rom -- cgit v1.2.3