aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/pj.sc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-04 17:37:36 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-04 17:37:36 +0000
commitc6c8c6dc7a1663096fb14c9bf71316810352a7b2 (patch)
tree0a0910a69de2dedfaae417c4c3de53c39be60f78 /ld/scripttempl/pj.sc
parent6040cc9d9908337ed6d63ee576433f7ce0797584 (diff)
downloadgdb-c6c8c6dc7a1663096fb14c9bf71316810352a7b2.zip
gdb-c6c8c6dc7a1663096fb14c9bf71316810352a7b2.tar.gz
gdb-c6c8c6dc7a1663096fb14c9bf71316810352a7b2.tar.bz2
1999-09-04 Steve Chamberlain <sac@pobox.com>
* configure.tgt (pjl-*-*, pj-*-*): New targets. * emulparams/pjelf.sh: New file. * emulparams/pjlelf.sh: New file. * scripttempl/pj.sc: New file. * Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o. (epjelf.o, epjlelf.o): New targets. * Makefile.in: Rebuild.
Diffstat (limited to 'ld/scripttempl/pj.sc')
-rw-r--r--ld/scripttempl/pj.sc55
1 files changed, 55 insertions, 0 deletions
diff --git a/ld/scripttempl/pj.sc b/ld/scripttempl/pj.sc
new file mode 100644
index 0000000..93981a5
--- /dev/null
+++ b/ld/scripttempl/pj.sc
@@ -0,0 +1,55 @@
+TORS=".tors :
+ {
+ ___ctors = . ;
+ *(.ctors)
+ ___ctors_end = . ;
+ ___dtors = . ;
+ *(.dtors)
+ ___dtors_end = . ;
+ } > ram"
+
+cat <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_ARCH(${ARCH})
+
+MEMORY
+{
+ ram : o = 0x1000, l = 512M
+}
+
+SECTIONS
+{
+ .text :
+ {
+ *(.text)
+ *(.strings)
+ ${RELOCATING+ _etext = . ; }
+ } ${RELOCATING+ > ram}
+ ${CONSTRUCTING+${TORS}}
+ .data :
+ {
+ *(.data)
+ ${RELOCATING+ _edata = . ; }
+ } ${RELOCATING+ > ram}
+ .bss :
+ {
+ ${RELOCATING+ _bss_start = . ; }
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ _end = . ; }
+ } ${RELOCATING+ > ram}
+ .stack ${RELOCATING+ 0x30000 } :
+ {
+ ${RELOCATING+ _stack = . ; }
+ *(.stack)
+ } ${RELOCATING+ > ram}
+ .stab 0 ${RELOCATING+(NOLOAD)} :
+ {
+ *(.stab)
+ }
+ .stabstr 0 ${RELOCATING+(NOLOAD)} :
+ {
+ *(.stabstr)
+ }
+}
+EOF