summaryrefslogtreecommitdiff
path: root/firmware/link
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-30 00:34:59 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-30 00:34:59 +0200
commitdda0896d875ec2d33b6de94df818a2f94526272b (patch)
tree502d58e1b72d77ca260efdf5513fbd1c51af3fba /firmware/link
parenta1e7c0c5efba4eebdb1ed178b5e3604226a1421a (diff)
use gcc/ld flags -ffunction-sections and --gc-sections
This will discard unused functions from the resulting binary
Diffstat (limited to 'firmware/link')
-rw-r--r--firmware/link/AT91SAM7S128-ROM-sam7dfu-app.ld10
-rw-r--r--firmware/link/AT91SAM7S256-ROM-sam7dfu-app.ld10
-rw-r--r--firmware/link/AT91SAM7S64-ROM-sam7dfu-app.ld10
3 files changed, 15 insertions, 15 deletions
diff --git a/firmware/link/AT91SAM7S128-ROM-sam7dfu-app.ld b/firmware/link/AT91SAM7S128-ROM-sam7dfu-app.ld
index ebac6d4..7db540e 100644
--- a/firmware/link/AT91SAM7S128-ROM-sam7dfu-app.ld
+++ b/firmware/link/AT91SAM7S128-ROM-sam7dfu-app.ld
@@ -16,8 +16,8 @@ SECTIONS
. = 0x00000000;
/* first section is .text which is used for code */
.text 0x00104000: AT ( 0x00000000 ) {
- src/start/Cstartup_app.o (.text)
- * (.text)
+ src/start/Cstartup_app.o (.text*)
+ * (.text*)
* (.rodata*)
. = ALIGN(4);
} >FLASH
@@ -28,8 +28,8 @@ SECTIONS
/* 0x00200000 ... */
.data 0x00200028: AT ( ADDR(.text) + SIZEOF(.text) - ADDR(.text) ) {
_data = . ;
- * (.fastrun)
- * (.data)
+ * (.fastrun*)
+ * (.data*)
. = ALIGN(4);
} >DATA
@@ -40,7 +40,7 @@ SECTIONS
.bss : {
__bss_start = . ;
__bss_start__ = . ;
- *(.bss)
+ *(.bss*)
*(COMMON)
} >DATA
diff --git a/firmware/link/AT91SAM7S256-ROM-sam7dfu-app.ld b/firmware/link/AT91SAM7S256-ROM-sam7dfu-app.ld
index 85bf7b8..7ec2089 100644
--- a/firmware/link/AT91SAM7S256-ROM-sam7dfu-app.ld
+++ b/firmware/link/AT91SAM7S256-ROM-sam7dfu-app.ld
@@ -16,8 +16,8 @@ SECTIONS
. = 0x00000000;
/* first section is .text which is used for code */
.text 0x00104000: AT ( 0x00000000 ) {
- src/start/Cstartup_app.o (.text)
- * (.text)
+ src/start/Cstartup_app.o (.text*)
+ * (.text*)
* (.rodata*)
. = ALIGN(4);
} >FLASH
@@ -28,8 +28,8 @@ SECTIONS
/* 0x00200000 ... */
.data 0x00200028: AT ( ADDR(.text) + SIZEOF(.text) - ADDR(.text) ) {
_data = . ;
- * (.fastrun)
- * (.data)
+ * (.fastrun*)
+ * (.data*)
. = ALIGN(4);
} >DATA
@@ -40,7 +40,7 @@ SECTIONS
.bss : {
__bss_start = . ;
__bss_start__ = . ;
- *(.bss)
+ *(.bss*)
*(COMMON)
} >DATA
diff --git a/firmware/link/AT91SAM7S64-ROM-sam7dfu-app.ld b/firmware/link/AT91SAM7S64-ROM-sam7dfu-app.ld
index de24dd8..d45f691 100644
--- a/firmware/link/AT91SAM7S64-ROM-sam7dfu-app.ld
+++ b/firmware/link/AT91SAM7S64-ROM-sam7dfu-app.ld
@@ -16,8 +16,8 @@ SECTIONS
. = 0x00000000;
/* first section is .text which is used for code */
.text 0x00104000: AT ( 0x00000000 ) {
- src/start/Cstartup_app.o (.text)
- * (.text)
+ src/start/Cstartup_app.o (.text*)
+ * (.text*)
* (.rodata*)
. = ALIGN(4);
} >FLASH
@@ -28,8 +28,8 @@ SECTIONS
/* 0x00200000 ... */
.data 0x00200028: AT ( ADDR(.text) + SIZEOF(.text) - ADDR(.text) ) {
_data = . ;
- * (.fastrun)
- * (.data)
+ * (.fastrun*)
+ * (.data*)
. = ALIGN(4);
} >DATA
@@ -40,7 +40,7 @@ SECTIONS
.bss : {
__bss_start = . ;
__bss_start__ = . ;
- *(.bss)
+ *(.bss*)
*(COMMON)
} >DATA
personal git repositories of Harald Welte. Your mileage may vary