aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorMichael Frysinger <vapier@gentoo.org>2010-10-15 05:41:53 +0000
committerMichael Frysinger <vapier@gentoo.org>2010-10-15 05:41:53 +0000
commit809f1ef494b202dc545e22c58c6c64717807f26f (patch)
tree53634721586c34cd81b91b09f606b2f65022f54e /libgloss
parent3fb5779745f855b544ab5025dc2363e2e14af429 (diff)
downloadnewlib-809f1ef494b202dc545e22c58c6c64717807f26f.zip
newlib-809f1ef494b202dc545e22c58c6c64717807f26f.tar.gz
newlib-809f1ef494b202dc545e22c58c6c64717807f26f.tar.bz2
libgloss: bfin: handle L1 sections in linker scripts
Make sure gcc L1 attributes work with the default Blackfin linker scripts. Signed-off-by: Stuart Henderson <stuart.henderson@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/bfin/bfin-common-mc.ld8
-rw-r--r--libgloss/bfin/bfin-common-sc.ld4
2 files changed, 6 insertions, 6 deletions
diff --git a/libgloss/bfin/bfin-common-mc.ld b/libgloss/bfin/bfin-common-mc.ld
index 1482c4d..26d4fa8 100644
--- a/libgloss/bfin/bfin-common-mc.ld
+++ b/libgloss/bfin/bfin-common-mc.ld
@@ -76,11 +76,11 @@ SECTIONS
} >MEM_L2_SHARED =0
.b.text :
{
- *(.b.text .b.text.*)
+ *(.b.text .b.text.* .b.l1.text .b.l1.text.*)
} >B_MEM_L1_CODE =0
.text :
{
- *(.text .stub .text.* .gnu.linkonce.t.*)
+ *(.text .stub .text.* .gnu.linkonce.t.* .l1.text .l1.text.*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
@@ -169,11 +169,11 @@ SECTIONS
.dynamic : { *(.dynamic) } >MEM_L1_DATA_A
.b.data :
{
- *(.b.data .b.data.*)
+ *(.b.data .b.data.* .b.l1.data .b.l1.data.*)
} >B_MEM_L1_DATA_A
.data :
{
- *(.data .data.* .gnu.linkonce.d.*)
+ *(.data .data.* .gnu.linkonce.d.* .l1.data .l1.data.*)
KEEP (*(.gnu.linkonce.d.*personality*))
SORT(CONSTRUCTORS)
} >MEM_L1_DATA_A
diff --git a/libgloss/bfin/bfin-common-sc.ld b/libgloss/bfin/bfin-common-sc.ld
index e185cc5..85f962d 100644
--- a/libgloss/bfin/bfin-common-sc.ld
+++ b/libgloss/bfin/bfin-common-sc.ld
@@ -72,7 +72,7 @@ SECTIONS
} >MEM_L2 =0
.text :
{
- *(.text .stub .text.* .gnu.linkonce.t.*)
+ *(.text .stub .text.* .gnu.linkonce.t.* .l1.text .l1.text.*)
KEEP (*(.text.*personality*))
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
@@ -160,7 +160,7 @@ SECTIONS
.dynamic : { *(.dynamic) } >MEM_L1_DATA_A
.data :
{
- *(.data .data.* .gnu.linkonce.d.*)
+ *(.data .data.* .gnu.linkonce.d.* .l1.data .l1.data.*)
KEEP (*(.gnu.linkonce.d.*personality*))
SORT(CONSTRUCTORS)
} >MEM_L1_DATA_A