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.
This commit is contained in:
parent
c3d002bb17
commit
be4514d38d
2 changed files with 19 additions and 15 deletions
|
@ -23,6 +23,9 @@
|
||||||
|
|
||||||
1999-09-12 Donn Terry <donn@interix.com>
|
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.
|
||||||
|
|
||||||
* lexsup.c (parse_args): Use strtoul for --split-by-reloc
|
* lexsup.c (parse_args): Use strtoul for --split-by-reloc
|
||||||
argument.
|
argument.
|
||||||
|
|
||||||
|
@ -45,12 +48,13 @@
|
||||||
* ldlang.c (open_output): Change local variable desired_endian
|
* ldlang.c (open_output): Change local variable desired_endian
|
||||||
from int to enum bfd_endian.
|
from int to enum bfd_endian.
|
||||||
|
|
||||||
* emulparams/arm_epoc_pe.sh: Define SUBSYSTEM and
|
* emulparams/arm_epoc_pe.sh: Define ENTRY, SUBSYSTEM and
|
||||||
INITIAL_SYMBOL_CHAR.
|
INITIAL_SYMBOL_CHAR.
|
||||||
* emulparams/armpe.sh: Likewise.
|
* emulparams/armpe.sh: Likewise.
|
||||||
* emulparams/morepe.sh: Likewise.
|
* emulparams/morepe.sh: Likewise.
|
||||||
* emulparams/ppcpe.sh: Likewise.
|
* emulparams/ppcpe.sh: Likewise.
|
||||||
* emulparams/i386pe.sh (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
|
* emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
|
||||||
|
(SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
|
||||||
|
|
||||||
Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
|
Fri Sep 10 00:22:50 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ ${OUTPUT_ARCH+OUTPUT_ARCH(${OUTPUT_ARCH})}
|
||||||
|
|
||||||
${LIB_SEARCH_DIRS}
|
${LIB_SEARCH_DIRS}
|
||||||
|
|
||||||
ENTRY(_mainCRTStartup)
|
ENTRY(${ENTRY})
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
|
@ -80,6 +80,13 @@ SECTIONS
|
||||||
${RELOCATING+*(.data_cygwin_nocopy)}
|
${RELOCATING+*(.data_cygwin_nocopy)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rdata ${RELOCATING+BLOCK(__section_alignment__)} :
|
||||||
|
{
|
||||||
|
*(.rdata)
|
||||||
|
${R_RDATA}
|
||||||
|
*(.eh_frame)
|
||||||
|
}
|
||||||
|
|
||||||
.bss ${RELOCATING+BLOCK(__section_alignment__)} :
|
.bss ${RELOCATING+BLOCK(__section_alignment__)} :
|
||||||
{
|
{
|
||||||
${RELOCATING+__bss_start__ = . ;}
|
${RELOCATING+__bss_start__ = . ;}
|
||||||
|
@ -88,13 +95,6 @@ SECTIONS
|
||||||
${RELOCATING+__bss_end__ = . ;}
|
${RELOCATING+__bss_end__ = . ;}
|
||||||
}
|
}
|
||||||
|
|
||||||
.rdata ${RELOCATING+BLOCK(__section_alignment__)} :
|
|
||||||
{
|
|
||||||
*(.rdata)
|
|
||||||
${R_RDATA}
|
|
||||||
*(.eh_frame)
|
|
||||||
}
|
|
||||||
|
|
||||||
.edata ${RELOCATING+BLOCK(__section_alignment__)} :
|
.edata ${RELOCATING+BLOCK(__section_alignment__)} :
|
||||||
{
|
{
|
||||||
*(.edata)
|
*(.edata)
|
||||||
|
@ -127,17 +127,17 @@ SECTIONS
|
||||||
${RELOCATING+ __end__ = .;}
|
${RELOCATING+ __end__ = .;}
|
||||||
}
|
}
|
||||||
|
|
||||||
.reloc ${RELOCATING+BLOCK(__section_alignment__)} :
|
|
||||||
{
|
|
||||||
*(.reloc)
|
|
||||||
}
|
|
||||||
|
|
||||||
.rsrc ${RELOCATING+BLOCK(__section_alignment__)} :
|
.rsrc ${RELOCATING+BLOCK(__section_alignment__)} :
|
||||||
{
|
{
|
||||||
*(.rsrc)
|
*(.rsrc)
|
||||||
${R_RSRC}
|
${R_RSRC}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reloc ${RELOCATING+BLOCK(__section_alignment__)} :
|
||||||
|
{
|
||||||
|
*(.reloc)
|
||||||
|
}
|
||||||
|
|
||||||
.stab ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
|
.stab ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
|
||||||
{
|
{
|
||||||
[ .stab ]
|
[ .stab ]
|
||||||
|
|
Loading…
Reference in a new issue