This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
fix for tx49 linker script ROM exception vectors
- From: "Andy Dyer" <adyer at righthandtech dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 11 Jul 2003 23:11:16 -0500
- Subject: [ECOS] fix for tx49 linker script ROM exception vectors
Here's a patch for the mips/tx49 linker script to put the
location of the exception vectors in the right place
when building a ROM version of things. I believe the
rm7000 linker script needs a similar fix.
--- /opt/ecos/ecos-2.0/packages/hal/mips/tx49/v2_0/src/mips_tx49.ld
2003-04-16 12:55:11.000000000 -0500
+++ mips_tx49.ld 2003-07-11 22:52:54.000000000 -0500
@@ -86,9 +86,10 @@
#define SECTION_rom_vectors(_region_, _vma_, _lma_) \
.rom_vectors _vma_ : _lma_ \
{ KEEP (*(.reset_vector)) \
- . = ALIGN(0x100); KEEP (*(.utlb_vector)) \
+ . = ALIGN(0x200); KEEP (*(.utlb_vector)) \
+ . = . + 0x100; \
. = ALIGN(0x80); KEEP(*(.other_vector)) \
- . = ALIGN(0x100); KEEP(*(.debug_vector)) } \
+ . = ALIGN(0x80); KEEP(*(.debug_vector)) } \
> _region_
#endif /* ROM startup version of ROM vectors */
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss