Home Explore Blog CI



man-pages

48th chunk of `ld.man`
cbd809ae102718502d92d56b1198c9b447e8eca020a4a7600000000100000c52
 separate address spaces using the split instruction and
           data space feature of the memory management unit in larger models of the PDP11.  This doubles the address space available to the program.  The text segment is again pure, write‐protected, and shareable.  The  only
           difference  in  the  output  format  between this option and the others, besides the magic number, is that both the text and data sections start at location 0.  The -z option selected this format in 2.11BSD.  This
           option creates a separate executable format.

       --no-omagic
           Equivalent to --nmagic for pdp11-aout.

ENVIRONMENT
       You can change the behaviour of ld with the environment variables "GNUTARGET", "LDEMULATION" and "COLLECT_NO_DEMANGLE".

       "GNUTARGET" determines the input‐file object format if you don’t use -b (or its synonym --format).  Its value should be one of the BFD names for an input format.  If there is no "GNUTARGET" in the environment, ld uses
       the natural format of the target. If "GNUTARGET" is set to "default" then BFD attempts to discover the input format by examining binary input files; this method often succeeds, but  there  are  potential  ambiguities,
       since  there  is  no  method of ensuring that the magic number used to specify object‐file formats is unique.  However, the configuration procedure for BFD on each system places the conventional format for that system
       first in the search‐list, so ambiguities are resolved in favor of convention.

       "LDEMULATION" determines the default emulation if you don’t use the -m option.  The emulation can affect various aspects of linker behaviour, particularly the  default  linker  script.   You  can  list  the  available
       emulations with the --verbose or -V options.  If the -m option is not used, and the "LDEMULATION" environment variable is not defined, the default emulation depends upon how the linker was configured.

       Normally,  the  linker  will default to demangling symbols.  However, if "COLLECT_NO_DEMANGLE" is set in the environment, then it will default to not demangling symbols.  This environment variable is used in a similar
       fashion by the "gcc" linker wrapper program.  The default may be overridden by the --demangle and --no-demangle options.

SEE ALSO
       ar(1), nm(1), objcopy(1), objdump(1), readelf(1) and the Info entries for binutils and ld.

COPYRIGHT
       Copyright (c) 1991-2023 Free Software Foundation, Inc.

       Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later  version  published  by  the  Free  Software  Foundation;  with  no
       Invariant Sections, with no Front‐Cover Texts, and with no Back‐Cover Texts.  A copy of the license is included in the section entitled "GNU Free Documentation License".

binutils‐2.41                                                                                              2023‐09‐05                                                                                                      LD(1)

Title: LD (GNU Linker) - Environment Variables, See Also, and Copyright
Summary
This section describes the usage of environment variables like GNUTARGET, LDEMULATION, and COLLECT_NO_DEMANGLE to modify the behavior of the ld (GNU Linker). It also provides a list of related utilities such as ar, nm, objcopy, objdump, and readelf for further investigation. The section concludes with copyright information regarding the document, including the GNU Free Documentation License.