aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-06-29 00:21:00 +0000
committerSteve Chamberlain <sac@cygnus>1995-06-29 00:21:00 +0000
commitde71eb7786da1170ae4b4acabeb4c62513c19602 (patch)
treef50c70017dfe024bdec70297d164e8f34c00edcf /ld/scripttempl
parent1a9924d8b3ff8222fd6bb774990455337a70a4af (diff)
downloadgdb-de71eb7786da1170ae4b4acabeb4c62513c19602.zip
gdb-de71eb7786da1170ae4b4acabeb4c62513c19602.tar.gz
gdb-de71eb7786da1170ae4b4acabeb4c62513c19602.tar.bz2
Wed Jun 28 17:11:25 1995 Steve Chamberlain <sac@slash.cygnus.com>
* ldmain.c (main): Always initialize PE info in link_info. * lexsup.c (OPTION_BASE_FILE): New option. (parse_args): Handle new option. * emulparams/armpe.sh: Output pei. * emultempl/i386pe.em: Add newline to end. * scripttempl/armpe.sc: Change output and quote the $s. * scripttempl/i386pe.sc: Change output and quote the $s.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/armpe.sc50
-rw-r--r--ld/scripttempl/i386pe.sc50
2 files changed, 50 insertions, 50 deletions
diff --git a/ld/scripttempl/armpe.sc b/ld/scripttempl/armpe.sc
index ea4e89c..208ebeb 100644
--- a/ld/scripttempl/armpe.sc
+++ b/ld/scripttempl/armpe.sc
@@ -4,7 +4,7 @@
INIT='.init : { *(.init) }'
FINI='.fini : { *(.fini) }'
cat <<EOF
-OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_FORMAT($OUTPUT_FORMAT)
${LIB_SEARCH_DIRS}
ENTRY(_mainCRTStartup)
@@ -34,36 +34,36 @@ SECTIONS
}
.idata BLOCK(0x1000) :
{
- *(.idata$2)
- *(.idata$3)
- *(.idata$4)
- *(.idata$5)
- *(.idata$6)
- *(.idata$7)
+ *(.idata\$2)
+ *(.idata\$3)
+ *(.idata\$4)
+ *(.idata\$5)
+ *(.idata\$6)
+ *(.idata\$7)
;
}
.CRT BLOCK(0x1000) :
{
- *(.CRT$XCA)
- *(.CRT$XCC)
- *(.CRT$XCZ)
- *(.CRT$XIA)
- *(.CRT$XIC)
- *(.CRT$XIZ)
- *(.CRT$XLA)
- *(.CRT$XLZ)
- *(.CRT$XPA)
- *(.CRT$XPX)
- *(.CRT$XPZ)
- *(.CRT$XTA)
- *(.CRT$XTZ)
+ *(.CRT\$XCA)
+ *(.CRT\$XCC)
+ *(.CRT\$XCZ)
+ *(.CRT\$XIA)
+ *(.CRT\$XIC)
+ *(.CRT\$XIZ)
+ *(.CRT\$XLA)
+ *(.CRT\$XLZ)
+ *(.CRT\$XPA)
+ *(.CRT\$XPX)
+ *(.CRT\$XPZ)
+ *(.CRT\$XTA)
+ *(.CRT\$XTZ)
;
}
.rsrc BLOCK(0x1000) :
{
- *(.rsrc$01)
- *(.rsrc$02)
+ *(.rsrc\$01)
+ *(.rsrc\$02)
;
}
.reloc BLOCK(0x1000) :
@@ -73,9 +73,9 @@ SECTIONS
}
.junk BLOCK(0x1000) :
{
- *(.debug$S)
- *(.debug$T)
- *(.debug$F)
+ *(.debug\$S)
+ *(.debug\$T)
+ *(.debug\$F)
*(.drectve)
;
}
diff --git a/ld/scripttempl/i386pe.sc b/ld/scripttempl/i386pe.sc
index d23506d..8923ad7 100644
--- a/ld/scripttempl/i386pe.sc
+++ b/ld/scripttempl/i386pe.sc
@@ -4,7 +4,7 @@
INIT='.init : { *(.init) }'
FINI='.fini : { *(.fini) }'
cat <<EOF
-OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+OUTPUT_FORMAT(pei-i386)
${LIB_SEARCH_DIRS}
ENTRY(_mainCRTStartup)
@@ -38,35 +38,35 @@ SECTIONS
}
.idata BLOCK(0x1000) :
{
- *(.idata$2)
- *(.idata$3)
- *(.idata$4)
- *(.idata$5)
- *(.idata$6)
- *(.idata$7)
+ *(.idata\$2)
+ *(.idata\$3)
+ *(.idata\$4)
+ *(.idata\$5)
+ *(.idata\$6)
+ *(.idata\$7)
;
}
.CRT BLOCK(0x1000) :
{
- *(.CRT$XCA)
- *(.CRT$XCC)
- *(.CRT$XCZ)
- *(.CRT$XIA)
- *(.CRT$XIC)
- *(.CRT$XIZ)
- *(.CRT$XLA)
- *(.CRT$XLZ)
- *(.CRT$XPA)
- *(.CRT$XPX)
- *(.CRT$XPZ)
- *(.CRT$XTA)
- *(.CRT$XTZ)
+ *(.CRT\$XCA)
+ *(.CRT\$XCC)
+ *(.CRT\$XCZ)
+ *(.CRT\$XIA)
+ *(.CRT\$XIC)
+ *(.CRT\$XIZ)
+ *(.CRT\$XLA)
+ *(.CRT\$XLZ)
+ *(.CRT\$XPA)
+ *(.CRT\$XPX)
+ *(.CRT\$XPZ)
+ *(.CRT\$XTA)
+ *(.CRT\$XTZ)
;
}
.rsrc BLOCK(0x1000) :
{
- *(.rsrc$01)
- *(.rsrc$02)
+ *(.rsrc\$01)
+ *(.rsrc\$02)
;
}
.reloc BLOCK(0x1000) :
@@ -76,9 +76,9 @@ SECTIONS
}
.junk BLOCK(0x1000) :
{
- *(.debug$S)
- *(.debug$T)
- *(.debug$F)
+ *(.debug\$S)
+ *(.debug\$T)
+ *(.debug\$F)
*(.drectve)
;
}