summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-11 15:16:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-11 15:16:03 +0000
commit4cd815d8425f24eb16a3bca169378c32d8d00795 (patch)
tree78f155505cc664e0977e429e5e82d3a04f502896
parent486a947a3a5eae6efd680af4be79aae7b7597f8e (diff)
downloadnuttx-4cd815d8425f24eb16a3bca169378c32d8d00795.tar.gz
nuttx-4cd815d8425f24eb16a3bca169378c32d8d00795.tar.bz2
nuttx-4cd815d8425f24eb16a3bca169378c32d8d00795.zip
Don't discard unused sections
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2124 42af7a65-404d-4744-a932-0658087f49c3
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.ctx11
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.dbi1
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld1
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.rdbbin113664 -> 114688 bytes
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh4
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/stm32-nuttx.ld5
6 files changed, 15 insertions, 7 deletions
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.ctx b/nuttx/configs/stm3210e-eval/RIDE/nuttx.ctx
index a0085389f..8dad95fea 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.ctx
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.ctx
@@ -1,5 +1,12 @@
<Debug>
+ <Views/>
+ <nuttx>
+ <MemoryView Focus="4294967294" TopRow="0" NbPerLine="8" />
+ <MemoryView Focus="4294967294" TopRow="0" NbPerLine="8" />
+ <CodeView Focus="4294967294" TopRow="0" NbPerLine="8" />
+ <CodeView Focus="4294967294" TopRow="0" NbPerLine="8" />
+ </nuttx>
<Flags>
<Report>
<Def Header="FlagReport" NbCol="8" >
@@ -11,12 +18,8 @@
<Col Type="PT_STRING" Header="Condition" sizeCache="DDDDDDDDDDDDDDDDDDDDDDDD" AutoSize="1" Edit="0" Sortable="0" />
<Col Type="PT_STRING" Header="Line" sizeCache="DDDDDD" AutoSize="1" Edit="0" Sortable="1" Visible="1" />
<Col Type="PT_STRING" Header="Path" sizeCache="DDDDDDDDDDDDDDDDDDDD" AutoSize="1" Edit="0" Sortable="1" Visible="1" />
-
</Def>
<Rows/>
-
</Report>
-
</Flags>
- <Views/>
</Debug> \ No newline at end of file
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.dbi b/nuttx/configs/stm3210e-eval/RIDE/nuttx.dbi
index 5b4cf3fca..51748d1b0 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.dbi
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.dbi
@@ -9,6 +9,7 @@ DataOffset=0x0
LoaderTool=ARM
Target=ARM
DebugTool=RLINK_CORTEX
+ApplicationComponents=
[Device]
Name=STM32F101VET6
[ARMSigDrv options]
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld b/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
index 4015d6339..f4d3a6ca1 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
@@ -14,5 +14,6 @@ INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_h
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_leds.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_boot.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\irq_unexpectedisr.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\lib_memcpy.o")
OUTPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\nuttx.elf")
INCLUDE "C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32-nuttx.ld"
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb b/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
index 34b78940b..bba763865 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
Binary files differ
diff --git a/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh b/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh
index 29259862d..d9a8bf260 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh
+++ b/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh
@@ -10,9 +10,9 @@ SIZE=arm-none-eabi-size.exe
DWF2XML=dwf2xml.exe
SCRIPT="C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\nuttx.elf.ld"
-LDFLAGS="-mcpu=cortex-m3 -mthumb -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,--warn-once -nostdlib"
+LDFLAGS="-mcpu=cortex-m3 -mthumb -u _start -Wl,-static -nostartfiles -Wl,--warn-once -nostdlib"
-${LD} "${LDFLAGS}" -Wl,-T -Xlinker "${SCRIPT}"
+${LD} ${LDFLAGS} -Wl,-T -Xlinker "${SCRIPT}"
${OBJCOPY} nuttx.elf --target=ihex nuttx.hex
${REXRDR} nuttx.elf.sizetmp 0 ${SIZE} nuttx.elf
${DWF2XML} nuttx.dbi nuttx-globals.Standard.xml nuttx.Standard.xml ARM
diff --git a/nuttx/configs/stm3210e-eval/RIDE/stm32-nuttx.ld b/nuttx/configs/stm3210e-eval/RIDE/stm32-nuttx.ld
index 2afd615d2..93bd6bca4 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/stm32-nuttx.ld
+++ b/nuttx/configs/stm3210e-eval/RIDE/stm32-nuttx.ld
@@ -34,7 +34,10 @@
****************************************************************************/
/* The STM32F103ZET6 has 512Kb of FLASH beginning at address 0x0800:0000 and
- * 64Kb of SRAM beginning at address 0x2000:0000.
+ * 64Kb of SRAM beginning at address 0x2000:0000. When booting from FLASH,
+ * FLASH memory is aliased to address 0x0000:0000 where the code expects to
+ * begin execution by jumping to the entry point in the 0x0800:0000 address
+ * range.
*/
MEMORY