diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2004-09-28 19:14:29 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2004-09-28 19:14:29 +0000 |
commit | 03098a9a6099730e34f4e6b20b8201030a0fd59a (patch) | |
tree | 2ec0f619b31263193e90f12238b60c1f5562335d /ld/scripttempl | |
parent | e979516b9ff53563dcb9544cf49256e4ab03fa71 (diff) | |
download | gdb-03098a9a6099730e34f4e6b20b8201030a0fd59a.zip gdb-03098a9a6099730e34f4e6b20b8201030a0fd59a.tar.gz gdb-03098a9a6099730e34f4e6b20b8201030a0fd59a.tar.bz2 |
* 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.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/pe.sc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index c6e25f5..8cbfe35 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -54,7 +54,11 @@ ENTRY(${ENTRY}) 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)} *(.text) |