changeset 1883:a16252f31c44

* src/h8300_h8300h.ld: h8300h_sim target build error fix
author asl
date Sun, 30 Jan 2005 22:56:10 +0000
parents 34ebc3d61174
children 6036f158c5ff
files packages/hal/h8300/h8300h/current/ChangeLog packages/hal/h8300/h8300h/current/src/h8300_h8300h.ld
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/h8300/h8300h/current/ChangeLog
+++ b/packages/hal/h8300/h8300h/current/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-27  Yoshinori Sato  <ysato@users.sourceforge.jp>
+
+	* src/h8300_h8300h.ld: h8300h_sim target build error fix
+
 2004-04-22  Jani Monoses <jani@iv.ro>
 
 	 * cdl/hal_h8300_h8300h.cdl :
--- a/packages/hal/h8300/h8300h/current/src/h8300_h8300h.ld
+++ b/packages/hal/h8300/h8300h/current/src/h8300_h8300h.ld
@@ -95,7 +95,7 @@ GROUP(libtarget.a libgcc.a)
     { FORCE_OUTPUT; *(.gcc_except_table) } \
     > _region_
 
-#if defined(CYGSEM_HAL_H8300_VECTOR_HOOK)
+#if defined(CYGHWR_HAL_H8300_VECTOR_ADDRESS)
 #define SECTION_int_hook_table(_region_, _vma_, _lma_) \
     .int_hook_table CYGHWR_HAL_H8300_VECTOR_ADDRESS : _lma_ \
     { CYG_LABEL_DEFN(__int_hook_start) = ABSOLUTE (.); \
@@ -137,6 +137,15 @@ GROUP(libtarget.a libgcc.a)
     CYG_LABEL_DEFN(__bss_end) = ABSOLUTE (.); } \
     > _region_
 
+#define SECTION_2ram(_region_, _vma_, _lma_) \
+    .2ram _vma_ : _lma_ \
+    { CYG_LABEL_DEFN(__iram_start) = ABSOLUTE (.); \
+    *( .2ram.*); \
+    . = ALIGN(4); \
+    CYG_LABEL_DEFN(__iram_end) = ABSOLUTE (.); } \
+    > _region_ \
+    CYG_LABEL_DEFN(__rom_iram_start) = LOADADDR (.2ram);
+
 #define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .);
 
 #include CYGHWR_MEMORY_LAYOUT_LDI