summaryrefslogtreecommitdiffstats
path: root/ld/ld.texinfo
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/ld.texinfo
parent66bed356fcb5fcae7a2af096b919b99218c28543 (diff)
downloadppe42-binutils-4d8907ac12142818530c77b52d39d50bcf9931c5.tar.gz
ppe42-binutils-4d8907ac12142818530c77b52d39d50bcf9931c5.zip
* 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/ld.texinfo')
-rw-r--r--ld/ld.texinfo13
1 files changed, 10 insertions, 3 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index f0faa8e932..ed7b3d1f6a 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -687,7 +687,9 @@ Turn off page alignment of sections, and mark the output as
Set the text and data sections to be readable and writable. Also, do
not page-align the data segment, and disable linking against shared
libraries. If the output format supports Unix style magic numbers,
-mark the output as @code{OMAGIC}.
+mark the output as @code{OMAGIC}. Note: Although a writable text section
+is allowed for PE-COFF targets, it does not conform to the format
+specification published by Microsoft.
@kindex --no-omagic
@cindex OMAGIC
@@ -1950,8 +1952,13 @@ uwin, pw, etc. For instance, cygwin DLLs typically use
@item --enable-auto-import
Do sophisticated linking of @code{_symbol} to @code{__imp__symbol} for
DATA imports from DLLs, and create the necessary thunking symbols when
-building the import libraries with those DATA exports. This generally
-will 'just work' -- but sometimes you may see this message:
+building the import libraries with those DATA exports. Note: Use of the
+'auto-import' extension will cause the text section of the image file
+to be made writable. This does not conform to the PE-COFF format
+specification published by Microsoft.
+
+Using 'auto-import' generally will 'just work' -- but sometimes you may
+see this message:
"variable '<var>' can't be auto-imported. Please read the
documentation for ld's @code{--enable-auto-import} for details."
OpenPOWER on IntegriCloud