aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-12 16:48:02 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-12 16:48:02 +0000
commitbe4514d38dd8c05e99b7a58a182913d0b9f09e80 (patch)
tree34101239cf20affd11a0e87e1c66124922892935 /ld/scripttempl
parentc3d002bb17cfd9f6898b5d08b21f1ea8511d0d14 (diff)
downloadgdb-be4514d38dd8c05e99b7a58a182913d0b9f09e80.zip
gdb-be4514d38dd8c05e99b7a58a182913d0b9f09e80.tar.gz
gdb-be4514d38dd8c05e99b7a58a182913d0b9f09e80.tar.bz2
1999-09-12 Donn Terry <donn@interix.com>
* scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup. Move .bss section after .rdata. Move .reloc section after .rsrc.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pe.sc26
1 files changed, 13 insertions, 13 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index 6212d42..961babd 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -42,7 +42,7 @@ ${OUTPUT_ARCH+OUTPUT_ARCH(${OUTPUT_ARCH})}
${LIB_SEARCH_DIRS}
-ENTRY(_mainCRTStartup)
+ENTRY(${ENTRY})
SECTIONS
{
@@ -80,6 +80,13 @@ SECTIONS
${RELOCATING+*(.data_cygwin_nocopy)}
}
+ .rdata ${RELOCATING+BLOCK(__section_alignment__)} :
+ {
+ *(.rdata)
+ ${R_RDATA}
+ *(.eh_frame)
+ }
+
.bss ${RELOCATING+BLOCK(__section_alignment__)} :
{
${RELOCATING+__bss_start__ = . ;}
@@ -88,13 +95,6 @@ SECTIONS
${RELOCATING+__bss_end__ = . ;}
}
- .rdata ${RELOCATING+BLOCK(__section_alignment__)} :
- {
- *(.rdata)
- ${R_RDATA}
- *(.eh_frame)
- }
-
.edata ${RELOCATING+BLOCK(__section_alignment__)} :
{
*(.edata)
@@ -127,17 +127,17 @@ SECTIONS
${RELOCATING+ __end__ = .;}
}
- .reloc ${RELOCATING+BLOCK(__section_alignment__)} :
- {
- *(.reloc)
- }
-
.rsrc ${RELOCATING+BLOCK(__section_alignment__)} :
{
*(.rsrc)
${R_RSRC}
}
+ .reloc ${RELOCATING+BLOCK(__section_alignment__)} :
+ {
+ *(.reloc)
+ }
+
.stab ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
[ .stab ]