aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/z8000.sc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-03 19:49:05 +0000
committerNick Clifton <nickc@redhat.com>2000-11-03 19:49:05 +0000
commit40a633d5cadf818182a0369e236f58b3c2ed60ae (patch)
tree2ca0a36ea4abc8343d013c41cebe0594921a9ede /ld/scripttempl/z8000.sc
parent36b0c0e0219069b331db088e9cf7f5b2797e9293 (diff)
downloadgdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.zip
gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.gz
gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.bz2
Use ${CONSTRUCTING...} to enclose constructors and destructors.
Diffstat (limited to 'ld/scripttempl/z8000.sc')
-rw-r--r--ld/scripttempl/z8000.sc45
1 files changed, 24 insertions, 21 deletions
diff --git a/ld/scripttempl/z8000.sc b/ld/scripttempl/z8000.sc
index 2b87930..646c880 100644
--- a/ld/scripttempl/z8000.sc
+++ b/ld/scripttempl/z8000.sc
@@ -5,7 +5,8 @@ ENTRY(_start)
SECTIONS
{
-.text ${BIG+ ${RELOCATING+ 0x0000000}} : {
+.text ${BIG+ ${RELOCATING+ 0x0000000}} :
+ {
*(.text)
*(.strings)
*(.rdata)
@@ -13,38 +14,40 @@ SECTIONS
.ctors ${BIG+ ${RELOCATING+ 0x2000000}} :
{
- ${RELOCATING+ ___ctors = . ; }
+ ${CONSTRUCTING+ ___ctors = . ; }
*(.ctors);
- ${RELOCATING+ ___ctors_end = . ; }
+ ${CONSTRUCTING+ ___ctors_end = . ; }
___dtors = . ;
*(.dtors);
- ${RELOCATING+ ___dtors_end = . ; }
+ ${CONSTRUCTING+ ___dtors_end = . ; }
}
-.data ${BIG+ ${RELOCATING+ 0x3000000}} : {
- *(.data)
+.data ${BIG+ ${RELOCATING+ 0x3000000}} :
+ {
+ *(.data)
}
.bss ${BIG+ ${RELOCATING+ 0x4000000}} :
- {
- ${RELOCATING+ __start_bss = . ; }
- *(.bss);
- *(COMMON);
- ${RELOCATING+ __end_bss = . ; }
- }
-
-.heap ${BIG+ ${RELOCATING+ 0x5000000}} : {
- ${RELOCATING+ __start_heap = . ; }
- ${RELOCATING+ . = . + 20k ; }
- ${RELOCATING+ __end_heap = . ; }
+ {
+ ${RELOCATING+ __start_bss = . ; }
+ *(.bss);
+ *(COMMON);
+ ${RELOCATING+ __end_bss = . ; }
+ }
+
+.heap ${BIG+ ${RELOCATING+ 0x5000000}} :
+ {
+ ${RELOCATING+ __start_heap = . ; }
+ ${RELOCATING+ . = . + 20k ; }
+ ${RELOCATING+ __end_heap = . ; }
}
.stack ${RELOCATING+ 0xf000 } :
{
- ${RELOCATING+ _stack = . ; }
- *(.stack)
- ${RELOCATING+ __stack_top = . ; }
- }
+ ${RELOCATING+ _stack = . ; }
+ *(.stack)
+ ${RELOCATING+ __stack_top = . ; }
+ }
}
EOF