summaryrefslogtreecommitdiff
path: root/ld/scripttempl/elfm68hc12.sc
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2004-08-01 20:04:22 +0000
committerStephane Carrez <stcarrez@nerim.fr>2004-08-01 20:04:22 +0000
commitb12525ef3a089c7022269f45055387e08a88d6ad (patch)
tree49a2bc8cae39b110194f472e0b1af77e7d16f2b2 /ld/scripttempl/elfm68hc12.sc
parentcece10751cbdcf712830ddf12e25d27dc600132b (diff)
downloadbinutils-redhat-b12525ef3a089c7022269f45055387e08a88d6ad.tar.gz
* scripttempl/elfm68hc12.sc: Align text, rodata and data section
on power of 2.
Diffstat (limited to 'ld/scripttempl/elfm68hc12.sc')
-rw-r--r--ld/scripttempl/elfm68hc12.sc13
1 files changed, 8 insertions, 5 deletions
diff --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc
index 2fa7186c26..f222343097 100644
--- a/ld/scripttempl/elfm68hc12.sc
+++ b/ld/scripttempl/elfm68hc12.sc
@@ -319,8 +319,8 @@ SECTIONS
${RELOCATING+_etext = .;}
${RELOCATING+PROVIDE (etext = .);}
-
- } ${RELOCATING+ > ${TEXT_MEMORY}}
+ ${RELOCATING+. = ALIGN(2);}
+ } ${RELOCATING+ > ${TEXT_MEMORY} =0xa7a7a7a7}
.eh_frame ${RELOCATING-0} :
{
@@ -337,12 +337,14 @@ SECTIONS
*(.rodata)
${RELOCATING+*(.rodata.*)}
${RELOCATING+*(.gnu.linkonce.r*)}
- } ${RELOCATING+ > ${TEXT_MEMORY}}
+ ${RELOCATING+. = ALIGN(2);}
+ } ${RELOCATING+ > ${TEXT_MEMORY} =0xffffffff}
.rodata1 ${RELOCATING-0} :
{
*(.rodata1)
- } ${RELOCATING+ > ${TEXT_MEMORY}}
+ ${RELOCATING+. = ALIGN(2);}
+ } ${RELOCATING+ > ${TEXT_MEMORY} =0xffffffff}
/* Constructor and destructor tables are in ROM. */
${RELOCATING+${CTOR}}
@@ -376,7 +378,8 @@ SECTIONS
${RELOCATING+_edata = .;}
${RELOCATING+PROVIDE (edata = .);}
- } ${RELOCATING+ > ${DATA_MEMORY}}
+ ${RELOCATING+. = ALIGN(2);}
+ } ${RELOCATING+ > ${DATA_MEMORY} =0xffffffff}
${RELOCATING+__data_section_size = SIZEOF(.data);}
${RELOCATING+PROVIDE (__data_section_size = SIZEOF(.data));}