aboutsummaryrefslogtreecommitdiff
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
commitf1b123dba7dcf10ed0ec38e1f6f55959b9b73608 (patch)
tree49f4c19efbb6ace692f41d724ee3bc04109d53ba
parente8773edb8da7c2dc4651c66583d499e69e75acfe (diff)
downloadfsf-binutils-gdb-f1b123dba7dcf10ed0ec38e1f6f55959b9b73608.zip
fsf-binutils-gdb-f1b123dba7dcf10ed0ec38e1f6f55959b9b73608.tar.gz
fsf-binutils-gdb-f1b123dba7dcf10ed0ec38e1f6f55959b9b73608.tar.bz2
* scripttempl/elfm68hc12.sc: Align text, rodata and data section
on power of 2.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/scripttempl/elfm68hc12.sc13
2 files changed, 13 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 9e2bfae..fba6dbd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
+
+ * scripttempl/elfm68hc12.sc: Align text, rodata and data section
+ on power of 2.
+
2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
diff --git a/ld/scripttempl/elfm68hc12.sc b/ld/scripttempl/elfm68hc12.sc
index 2fa7186..f222343 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));}