[binutils-gdb] ld: Couple of fixes for Win32 section of linker manual

Eric Botcazou ebotcazou@sourceware.org
Thu Nov 5 14:31:41 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2364e17098e63e0af17c5329dec1ca8cd82c6cbb

commit 2364e17098e63e0af17c5329dec1ca8cd82c6cbb
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Thu Nov 5 15:17:38 2026 +0100

    ld: Couple of fixes for Win32 section of linker manual
    
    The whole section is a little bit outdated, but this fixes at least a couple
    of blatant issues in the description of the support for pseudo relocations:
    the name of the switch is misspelled (no terminating 's') and it has been
    enabled by default for a while now.
    
    ld/
            * ld.texi (ld and WIN32): Fix a couple of inaccuracies.

Diff:
---
 ld/ld.texi | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/ld/ld.texi b/ld/ld.texi
index 2416a83cc7a..963d47fd59a 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -9507,7 +9507,7 @@ without the additional information supplied by dllimport/dllexport decorations.
 The standard auto-import feature described above is unable to resolve these
 references.
 
-The @samp{--enable-runtime-pseudo-relocs} switch allows these references to
+The @samp{--enable-runtime-pseudo-reloc} switch allows these references to
 be resolved without error, while leaving the task of adjusting the references
 themselves (with their non-zero addends) to specialized code provided by the
 runtime environment.  Recent versions of the cygwin and mingw environments and
@@ -9515,8 +9515,7 @@ compilers provide this runtime support; older versions do not.  However, the
 support is only necessary on the developer's platform; the compiled result will
 run without error on an older system.
 
-@samp{--enable-runtime-pseudo-relocs} is not the default; it must be explicitly
-enabled as needed.
+@samp{--enable-runtime-pseudo-reloc} is the default for recent linker versions.
 
 @cindex direct linking to a dll
 @item direct linking to a dll
@@ -9618,7 +9617,7 @@ lib/
 
 Linking directly to a dll without using an import lib will work
 even when auto-import features are exercised, and even when
-@samp{--enable-runtime-pseudo-relocs} is used.
+@samp{--enable-runtime-pseudo-reloc} is used.
 
 Given the improvements in speed and memory usage, one might justifiably
 wonder why import libraries are used at all.  There are three reasons:


More information about the Binutils-cvs mailing list