Skip to content

Commit e3bf48a

Browse files
committed
fix the issue that GCC builds extra-large bin file
also a minor fix to IAR icf file
1 parent 4a073ed commit e3bf48a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_GCC_ARM/rlx8195A-symbol-v02-img2.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
ENTRY(Reset_Handler)
44

5-
/*INCLUDE "mbed-os/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_GCC_ARM/export-rom_v02.txt"*/
65
SECTIONS
76
{
87
__vectors_table = 0x0;
@@ -804,6 +803,7 @@ SECTIONS
804803
__HeapLimit = .;
805804
} > BD_RAM
806805

806+
/*
807807
.TCM_overlay :
808808
{
809809
*(.tcm.heap*)
@@ -836,7 +836,7 @@ SECTIONS
836836
*(.websocket.bss*)
837837
__sdram_bss_end__ = .;
838838
} > SD_RAM
839-
839+
*/
840840
/* .stack_dummy section doesn't contains any symbols. It is only
841841
* used for linker to calculate size of stack sections, and assign
842842
* values to stack symbols later */

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_IAR/rtl8195a.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ do not initialize { section .noinit };
3636
/****************************************
3737
* ROM Section config *
3838
****************************************/
39-
keep { section .rom };
39+
//keep { section .rom };
4040
//place at start of ROM_region { readonly, section .rom };
4141
place at start of ROM_region {section .rom };
4242

@@ -85,8 +85,8 @@ define block .ram_image1.data with fixed order{ section .image1.validate.rodata*
8585
// };
8686

8787
define block .ram_image1.text with fixed order{ section .hal.ram.text*,
88-
section .hal.sdrc.text*,
89-
//section .text* object startup.o,
88+
// //section .hal.sdrc.text*,
89+
// //section .text* object startup.o,
9090
section .infra.ram.text*,
9191
};
9292

@@ -154,7 +154,7 @@ define block .ram.bss with fixed order{ section .bss*,
154154

155155
place at start of BD_RAM_region {
156156
block IMAGE2,
157-
readwrite,
157+
//readwrite,
158158
block .ram.bss,
159159
};
160160
place at end of BD_RAM_region{

0 commit comments

Comments
 (0)