* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
emulparams/i386pe_posix.sh, emulparams/mcorepe.sh, emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define TARGET_PAGE_SIZE. * scripttempl/pe.sc: Make the virtual address and file offset synced if the alignment is lower than the target page size.
This commit is contained in:
parent
e979516b9f
commit
03098a9a60
10 changed files with 23 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2004-09-18 Filip Navara <navaraf@reactos.com>
|
||||||
|
|
||||||
|
* emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
|
||||||
|
emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
|
||||||
|
emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
|
||||||
|
TARGET_PAGE_SIZE.
|
||||||
|
* scripttempl/pe.sc: Make the virtual address and file offset synced if
|
||||||
|
the alignment is lower than the target page size.
|
||||||
|
|
||||||
2004-09-27 Filip Navara <navaraf@reactos.com>
|
2004-09-27 Filip Navara <navaraf@reactos.com>
|
||||||
|
|
||||||
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
|
* emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
|
||||||
|
|
|
@ -7,3 +7,4 @@ TEMPLATE_NAME=pe
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -11,3 +11,5 @@ TEMPLATE_NAME=pe
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -6,3 +6,4 @@ TEMPLATE_NAME=pe
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -7,3 +7,4 @@ ENTRY="___PosixProcessStartup"
|
||||||
SUBSYSTEM=7
|
SUBSYSTEM=7
|
||||||
EXECUTABLE_NAME=a.out
|
EXECUTABLE_NAME=a.out
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -7,3 +7,4 @@ TEMPLATE_NAME=pe
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -7,3 +7,4 @@ TEMPLATE_NAME=pe
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -5,3 +5,4 @@ TEMPLATE_NAME=pe
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -7,3 +7,4 @@ INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
ENTRY="_mainCRTStartup"
|
ENTRY="_mainCRTStartup"
|
||||||
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
SUBSYSTEM=PE_DEF_SUBSYSTEM
|
||||||
INITIAL_SYMBOL_CHAR=\"_\"
|
INITIAL_SYMBOL_CHAR=\"_\"
|
||||||
|
TARGET_PAGE_SIZE=0x1000
|
||||||
|
|
|
@ -54,7 +54,11 @@ ENTRY(${ENTRY})
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text ${RELOCATING+ __image_base__ + __section_alignment__ } :
|
${RELOCATING+/* Make the virtual address and file offset synced if the alignment is}
|
||||||
|
${RELOCATING+ lower than the target page size. */}
|
||||||
|
${RELOCATING+. = SIZEOF_HEADERS;}
|
||||||
|
${RELOCATING+. = ALIGN(__section_alignment__);}
|
||||||
|
.text ${RELOCATING+ __image_base__ + ( __section_alignment__ < ${TARGET_PAGE_SIZE} ? . : __section_alignment__ )} :
|
||||||
{
|
{
|
||||||
${RELOCATING+ *(.init)}
|
${RELOCATING+ *(.init)}
|
||||||
*(.text)
|
*(.text)
|
||||||
|
|
Loading…
Reference in a new issue