summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-03 17:27:06 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-03 17:27:06 +0000
commit0af1b73f3ca5d11f7ada451e313741b17c501360 (patch)
tree8f6d5e0a11343ab6a72b0431729b73fc4d63e92d /c/src/lib
parentUpdated times. (diff)
downloadrtems-0af1b73f3ca5d11f7ada451e313741b17c501360.tar.bz2
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.
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/startup/linkcmds2
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.bootp2
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/startup/linkcmds.prom2
3 files changed, 5 insertions, 1 deletions
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