aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-07-09 09:22:20 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-07-09 09:22:20 +0000
commit0082938a9990953a91f1ce78edb35de3b0967239 (patch)
tree57d63ecc19555f017407fb89e83d5f51a2fb649b /os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld
parent2af0d2f2513182f902946c16381ff5ffb36cfc19 (diff)
downloadChibiOS-0082938a9990953a91f1ce78edb35de3b0967239.tar.gz
ChibiOS-0082938a9990953a91f1ce78edb35de3b0967239.tar.bz2
ChibiOS-0082938a9990953a91f1ce78edb35de3b0967239.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12152 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld')
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld b/os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld
index 76ac53116..f61a59f17 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld
+++ b/os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld
@@ -35,13 +35,15 @@ SECTIONS
__fini_array_end = .;
} > XTORS_FLASH AT > XTORS_FLASH_LMA
- .text ALIGN(16) : ALIGN(16)
+ .text : ALIGN(16)
{
+ __text_base = .;
*(.text)
*(.text.*)
*(.glue_7t)
*(.glue_7)
*(.gcc*)
+ __text_end = .;
} > TEXT_FLASH AT > TEXT_FLASH_LMA
.rodata : ALIGN(4)