aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elfmicroblaze.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elfmicroblaze.sc')
-rw-r--r--ld/scripttempl/elfmicroblaze.sc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/elfmicroblaze.sc b/ld/scripttempl/elfmicroblaze.sc
index a54b891..8d2e6f2 100644
--- a/ld/scripttempl/elfmicroblaze.sc
+++ b/ld/scripttempl/elfmicroblaze.sc
@@ -183,7 +183,7 @@ SECTIONS
${RELOCATING+*(.bss.*)}
${RELOCATING+*(.gnu.linkonce.b.*)}
${RELOCATING+*(COMMON)}
- ${RELOCATING+. = ALIGN(4);}
+ ${RELOCATING+. = ALIGN(. != 0 ? 4 : 1);}
${RELOCATING+PROVIDE (__bss_end = .);}
@@ -203,7 +203,7 @@ SECTIONS
.stack : {
${RELOCATING+ _stack_end = .;}
${RELOCATING+ . += _STACK_SIZE;}
- ${RELOCATING+ . = ALIGN(8);}
+ ${RELOCATING+ . = ALIGN(. != 0 ? 8 : 1);}
${RELOCATING+ _stack = .;}
${RELOCATING+ _end = .;}
}