aboutsummaryrefslogtreecommitdiff
path: root/ld/pe-dll.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2004-01-20 21:08:16 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2004-01-20 21:08:16 +0000
commit4d8907ac12142818530c77b52d39d50bcf9931c5 (patch)
treef2f11e9c97c70f9fb38112af1e886f5dce4983cb /ld/pe-dll.c
parent66bed356fcb5fcae7a2af096b919b99218c28543 (diff)
downloadfsf-binutils-gdb-4d8907ac12142818530c77b52d39d50bcf9931c5.zip
fsf-binutils-gdb-4d8907ac12142818530c77b52d39d50bcf9931c5.tar.gz
fsf-binutils-gdb-4d8907ac12142818530c77b52d39d50bcf9931c5.tar.bz2
* pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
* ld.texinfo (--omagic): Note that writable text section does not conform to published PE-COFF specs. (--enable-auto-import): Likewise.
Diffstat (limited to 'ld/pe-dll.c')
-rw-r--r--ld/pe-dll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/pe-dll.c b/ld/pe-dll.c
index 0542ace..ce3f443 100644
--- a/ld/pe-dll.c
+++ b/ld/pe-dll.c
@@ -1,5 +1,6 @@
/* Routines to help build PEI-format DLLs (Win32 etc)
- Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
Written by DJ Delorie <dj@cygnus.com>
This file is part of GLD, the Gnu Linker.
@@ -2176,6 +2177,7 @@ pe_create_import_fixup (arelent *rel, asection *s, int addend)
/* If we ever use autoimport, we have to cast text section writable. */
config.text_read_only = FALSE;
+ output_bfd->flags &= ~WP_TEXT;
}
if (addend == 0 || link_info.pei386_runtime_pseudo_reloc)