This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: redboot_RAM __heap1 undefined


Jay Foster wrote:
The final fix was to add the "CYG_LABEL_DEFN(__heap1) = ALIGN(0x8);" and the
"#include <cyg/infra/cyg_type.inc>" statements to the
<pkgconf/mlt_arm_snds_ram.ldi> file in the component source repository and
do a complete rebuild as you suggested.  The cyg_type.inc file is needed to
define the CYG_LABEL_DEFN() macro, which if left undefined, causes the parse
error in the loader when parsing the target.ld file.
I've taken the liberty of fixing in the repository with the attached patch.

Jifl
--
eCosCentric       http://www.eCosCentric.com/       <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- ChangeLog	23 May 2002 23:02:29 -0000	1.2
+++ ChangeLog	3 Oct 2002 16:18:46 -0000
@@ -1,5 +1,9 @@
+2002-10-03  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* include/pkgconf/mlt_arm_snds_ram.ldi: Add definition of heap1.
+
 2002-05-07  Gary Thomas  <gthomas@redhat.com>
 
 	* cdl/hal_arm_snds.cdl: 
 	Standardize CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_DEFAULT usage.
 
Index: include/pkgconf/mlt_arm_snds_ram.ldi
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/snds/current/include/pkgconf/mlt_arm_snds_ram.ldi,v
retrieving revision 1.1
diff -u -5 -p -r1.1 mlt_arm_snds_ram.ldi
--- include/pkgconf/mlt_arm_snds_ram.ldi	20 May 2002 22:22:22 -0000	1.1
+++ include/pkgconf/mlt_arm_snds_ram.ldi	3 Oct 2002 16:18:46 -0000
@@ -1,9 +1,11 @@
 // eCos memory layout - Tue Feb 29 14:11:30 2000
 
 // This is a generated file - do not edit
 
+#include <cyg/infra/cyg_type.inc>
+
 MEMORY
 {
     ram : ORIGIN = 0x000000, LENGTH = 0x01000000
 }
 
@@ -18,7 +20,8 @@ SECTIONS
     SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_data (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA)
+    CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
     SECTIONS_END
 }

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]