diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2001-01-10 18:58:36 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2001-01-10 18:58:36 +0000 |
commit | 69f069696b3aa4a34a0cfac45a4f338129eb1efd (patch) | |
tree | f3cf7a8f5d0443bef0d05229b26fa986441e8dce /ld/scripttempl | |
parent | de9d65b5dc1cb19594d17e7f9e6915aa511c4a79 (diff) | |
download | gdb-69f069696b3aa4a34a0cfac45a4f338129eb1efd.zip gdb-69f069696b3aa4a34a0cfac45a4f338129eb1efd.tar.gz gdb-69f069696b3aa4a34a0cfac45a4f338129eb1efd.tar.bz2 |
2001-01-10 Kazu Hirata <kazu@hxi.com>
* scripttempl/h8500.sc: Fix formatting.
* scripttempl/h8500b.sc: Likewise.
* scripttempl/h8500c.sc: Likewise.
* scripttempl/h8500m.sc: Likewise.
* scripttempl/h8500s.sc: Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/h8500.sc | 28 | ||||
-rw-r--r-- | ld/scripttempl/h8500b.sc | 61 | ||||
-rw-r--r-- | ld/scripttempl/h8500c.sc | 57 | ||||
-rw-r--r-- | ld/scripttempl/h8500m.sc | 34 | ||||
-rw-r--r-- | ld/scripttempl/h8500s.sc | 32 |
5 files changed, 96 insertions, 116 deletions
diff --git a/ld/scripttempl/h8500.sc b/ld/scripttempl/h8500.sc index f6e88c6..6b889dd 100644 --- a/ld/scripttempl/h8500.sc +++ b/ld/scripttempl/h8500.sc @@ -12,27 +12,27 @@ OUTPUT_ARCH(${ARCH}) /* Code and data 64k total */ -SECTIONS -{ -.text ${RELOCATING+ 0x0000 } : - { +SECTIONS +{ +.text ${RELOCATING+ 0x0000} : + { *(.text) - ${RELOCATING+ _etext = . ; } + ${RELOCATING+ _etext = . ; } } .data ${RELOCATING+ . } : { *(.data) ${RELOCATING+ _edata = . ; } - } + } .rdata ${RELOCATING+ . } : { - *(.rdata); + *(.rdata); *(.strings) - + ${CONSTRUCTING+${TORS}} - } + } .bss ${RELOCATING+ . } : { @@ -46,20 +46,16 @@ SECTIONS { ${RELOCATING+ _stack = . ; } *(.stack) - } + } -.stab 0 ${RELOCATING+(NOLOAD)} : +.stab 0 ${RELOCATING+(NOLOAD)} : { [ .stab ] } - + .stabstr 0 ${RELOCATING+(NOLOAD)} : { [ .stabstr ] } } EOF - - - - diff --git a/ld/scripttempl/h8500b.sc b/ld/scripttempl/h8500b.sc index a64eebc..fb6c0e8 100644 --- a/ld/scripttempl/h8500b.sc +++ b/ld/scripttempl/h8500b.sc @@ -12,55 +12,50 @@ OUTPUT_ARCH(${ARCH}) /* Code and data, both larger than 64k */ -SECTIONS -{ +SECTIONS +{ .text ${RELOCATING+ 0x10000} : - { - *(.text) - - ${RELOCATING+ _etext = . ; } + { + *(.text) + ${RELOCATING+ _etext = . ; } } - .data ${RELOCATING+ 0x20000} : { - *(.data) - ${RELOCATING+ _edata = . ; } - } + *(.data) + ${RELOCATING+ _edata = . ; } + } .rdata ${RELOCATING+ 0x30000} : { - *(.rdata); + *(.rdata); *(.strings) - - ${CONSTRUCTING+${TORS}} - } + + ${CONSTRUCTING+${TORS}} + } .bss ${RELOCATING+ 0x40000} : { - ${RELOCATING+ __start_bss = . ; } - *(.bss) - *(COMMON) - ${RELOCATING+ _end = . ; } + ${RELOCATING+ __start_bss = . ; } + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } } .stack ${RELOCATING+ 0x50000} : { - ${RELOCATING+ _stack = . ; } - *(.stack) - } + ${RELOCATING+ _stack = . ; } + *(.stack) + } + +.stab 0 ${RELOCATING+(NOLOAD)} : + { + [ .stab ] + } - .stab 0 ${RELOCATING+(NOLOAD)} : - { - [ .stab ] - } - .stabstr 0 ${RELOCATING+(NOLOAD)} : - { - [ .stabstr ] - } +.stabstr 0 ${RELOCATING+(NOLOAD)} : + { + [ .stabstr ] + } } EOF - - - - diff --git a/ld/scripttempl/h8500c.sc b/ld/scripttempl/h8500c.sc index bc69649..145ffc5 100644 --- a/ld/scripttempl/h8500c.sc +++ b/ld/scripttempl/h8500c.sc @@ -12,53 +12,50 @@ OUTPUT_ARCH(${ARCH}) /* Compact model - code < 64k, data > 64k */ -SECTIONS -{ +SECTIONS +{ .text 0x10000 : - { - *(.text) + { + *(.text) *(.strings) - ${RELOCATING+ _etext = . ; } + ${RELOCATING+ _etext = . ; } } ${RELOCATING+ > ram} - .data 0x20000 : { - *(.data) - ${RELOCATING+ _edata = . ; } + *(.data) + ${RELOCATING+ _edata = . ; } } ${RELOCATING+ > ram} .rdata 0x30000 : - { - *(.rdata); - - ${CONSTRUCTING+${TORS}} + { + *(.rdata); + + ${CONSTRUCTING+${TORS}} } ${RELOCATING+ > ram} .bss 0x40000 : { - ${RELOCATING+ __start_bss = . ; } - *(.bss) - *(COMMON) - ${RELOCATING+ _end = . ; } + ${RELOCATING+ __start_bss = . ; } + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } } ${RELOCATING+ >ram} + .stack 0x5fff0 : { - ${RELOCATING+ _stack = . ; } - *(.stack) + ${RELOCATING+ _stack = . ; } + *(.stack) } ${RELOCATING+ > topram} - .stab 0 ${RELOCATING+(NOLOAD)} : - { - [ .stab ] - } - .stabstr 0 ${RELOCATING+(NOLOAD)} : - { - [ .stabstr ] - } +.stab 0 ${RELOCATING+(NOLOAD)} : + { + [ .stab ] + } + +.stabstr 0 ${RELOCATING+(NOLOAD)} : + { + [ .stabstr ] + } } EOF - - - - diff --git a/ld/scripttempl/h8500m.sc b/ld/scripttempl/h8500m.sc index 06ce2af..3314066 100644 --- a/ld/scripttempl/h8500m.sc +++ b/ld/scripttempl/h8500m.sc @@ -12,27 +12,27 @@ OUTPUT_ARCH(${ARCH}) /* Code and data, both larger than 64k */ -SECTIONS -{ +SECTIONS +{ .text ${RELOCATING+ 0x10000} : - { - *(.text) - ${RELOCATING+ _etext = . ; } + { + *(.text) + ${RELOCATING+ _etext = . ; } } .data ${RELOCATING+ 0x20000} : { *(.data) ${RELOCATING+ _edata = . ; } - } + } .rdata ${RELOCATING+ . } : { - *(.rdata); + *(.rdata); *(.strings) - - ${CONSTRUCTING+${TORS}} - } + + ${CONSTRUCTING+${TORS}} + } .bss ${RELOCATING+ . } : { @@ -46,20 +46,16 @@ SECTIONS { ${RELOCATING+ _stack = . ; } *(.stack) - } + } -.stab 0 ${RELOCATING+(NOLOAD)} : - { - [ .stab ] +.stab 0 ${RELOCATING+(NOLOAD)} : + { + [ .stab ] } - + .stabstr 0 ${RELOCATING+(NOLOAD)} : { [ .stabstr ] } } EOF - - - - diff --git a/ld/scripttempl/h8500s.sc b/ld/scripttempl/h8500s.sc index 2567489..da4d210 100644 --- a/ld/scripttempl/h8500s.sc +++ b/ld/scripttempl/h8500s.sc @@ -12,19 +12,19 @@ OUTPUT_ARCH(${ARCH}) /* Code and data, both 64k */ -SECTIONS -{ -.text ${RELOCATING+ 0x10000 } : - { - *(.text) - ${RELOCATING+ _etext = . ; } +SECTIONS +{ +.text ${RELOCATING+ 0x10000} : + { + *(.text) + ${RELOCATING+ _etext = . ; } } -.rdata ${RELOCATING+ 0x20000 } : +.rdata ${RELOCATING+ 0x20000} : { - *(.rdata); + *(.rdata); *(.strings) - + ${CONSTRUCTING+${TORS}} } @@ -32,7 +32,7 @@ SECTIONS { *(.data) ${RELOCATING+ _edata = . ; } - } + } .bss ${RELOCATING+ .} : { @@ -46,20 +46,16 @@ SECTIONS { ${RELOCATING+ _stack = . ; } *(.stack) - } + } -.stab 0 ${RELOCATING+(NOLOAD)} : +.stab 0 ${RELOCATING+(NOLOAD)} : { - [ .stab ] + [ .stab ] } - + .stabstr 0 ${RELOCATING+(NOLOAD)} : { [ .stabstr ] } } EOF - - - - |