Published by rui314 about 2 years ago
This is a pre-release for those who want to test it before the official 1.6.0 release.
-static-pie
. Previously, executables linked with that flag crashed immediately.Published by rui314 about 2 years ago
mold 1.5.1 is a new release of the high-speed linker. This version contains only the following bug fix. We recommend upgrading from 1.5.0 if you are being affected by this issue.
-z max-page-size
option, the loader refused to execute it with the error while loading shared libraries: cannot apply additional memory protection after relocation: Cannot allocate memory
error. We reverted our recent commits so that mold creates output files with the same memory layout as it did before 1.5.0. (e62de0b31f0350e425c28532cc8fad16e720c161)mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 about 2 years ago
mold 1.5.0 is a new release of the high-speed linker. The highlight of this release is that we start supporting the following four new targets: PPC64LE, SPARC64, RV32BE and RV64BE. mold 1.5.0 also includes various bug fixes, performance and compatibility improvements as shown below.
Starting from this release, we recommend using cmake
instead of make
to build mold. We will soon stop supporting make
, so please migrate early and report issues if you find any.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under heavy load.
-mbig-endian
. mold can now link object files generated with that option.--compress-debug-sections=zstd
is now supported. This is an option to compress debug info embedded to an output file with Zstandard compression algorithm. Compared to the existing --compress-debug-sections=zlib
, zstd is faster and gives a higher compression ratio. You probably can't start using zstd compression today though, because other tools such as gdb
may not be able to read zstd-compressed debug info yet. But adding this option early makes mold future-proof. (ede7a5aaa3876fd19bb86c427e2033026d2770e2).rodata
section under a certain condition. It's not technically wrong but confused Valgrind. This issue has been resolved. (25c7aee1d928df650b92e1b9f8f9d4f37fd27829)--defsym
option. (8c7f31cafae4b859dbd5edf4a0465af4922bb32c)--compress-debug-sections=zlib-gnu
has been removed. LLVM lld removed that option too as there seems to be no usage of the flag.mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 about 2 years ago
mold 1.4.2 is a maintenance release of the high-speed linker. This release includes, but not limited to, the following improvements and bug fixes.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under heavy load.
mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 about 2 years ago
mold 1.4.1 is a maintenance release of the high-speed linker. This release contains the following improvements and bug fixes.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under heavy load.
--hash-style=both
is now the default if no --hash-style
option is given. Previously, --hash-style=sysv
was the default. This change shouldn't affect most users because the compiler driver (cc, gcc, clang, etc.) always passes --hash-style
to the linker. We made this change because GNU ld defaults to --hash-style=both
.--defsym
option now have the same scope as the aliased symbols. Previously, alias symbols defined by --defsym
were always hidden and never be exported as dynamic symbols. (5dd122710ccd058346a922f94cffb7c595168fe7)foo = bar
-style linker script directive to define symbol aliases. Previously, such statement was treated as a syntax error. This change was made to link mariadb-connector-c correctly (f0e1237b0022d839ba398ba0d57bcace3f1c57de)SHN_UNDEF
. (a595c4874d83b40d5e595babad0af34ecdcb58d3)mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 about 2 years ago
mold 1.4.0 is a new release of the high-speed linker. This release contains a few new features and general stability/compatibility improvements as shown below.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under a heavy load.
--export-dynamic-symbol
and --export-dynamic-symbol-list
are now supported for the sake of compatibility with LLVM lld. With these options, you can specify symbols that should be exported using glob pattern. (e115aaef4ccee5bbb73af1b5d1c6b650c956269f)ENDBR64
instruction to improve compatibility with Intel IBT (Indirect Branch Tracking.) (e3e371dcd3dc54bce2071ad7b92313075f4c10d7)__dso_handle
symbol. The lack of this linker-synthesized symbol caused a link error with GCC in some environments (https://github.com/rui314/mold/issues/507). (764d7575f7da89508a0aabe4febc9008c5429674)mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 over 2 years ago
mold 1.3.1 is a maintenance release of the high-speed linker. This release contains the following minor bug fixes.
.preinit_array
sections. Without this, AddressSanitizer didn't work in some environments. (3b753987860fc6b26385be56db802000c9217fea)R_ARM_MOVT_PREL
and R_ARM_PREL31
relocations are now handled correctly so that mold no longer emit spurious "recompile with -fPIC" errors. (52943009b7dce4a0ebb5943092d47e6e33625401)mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
Published by rui314 over 2 years ago
mold 1.3.0 is a new release of the high-speed linker. This release contains a few new features and general stability/compatibility improvements as shown below.
Note for those who create mold binary packages: if you are building mold for binary distribution, please link the bundled libtbb statically (which is default) or rebuild your distro's libtbb package with my patch so that mold's Link-Time Optimization (LTO) works reliably under a heavy load.
--icf=safe
option has been supported. This option enables a feature to find and deduplicate identical code that can be merged safely. For C++ programs, it typically reduces the output binary size by a few percent. --icf=safe
needs to be used with a compiler that supports .llvm_addrsig
section; if a compiler does not support it, --icf=safe
doesn't do any harm but cannot optimize a given program at all. That section is supported by LLVM/Clang at the moment, and we are working on adding it to GCC. (https://github.com/rui314/mold/issues/484, 27908af67dd1b989dedca849aceffc54f1b605f0)pthread_create(2)
. (d8a8877875d96d0efdb727b4ba600ee3910a333f)--S
was accidentally accepted as an alias for-S
. This is unconventional, and such options are no longer accepted. (232dafa8d01f787ac069706de571c1614fcbf9df)--color-diagnostics
is now an alias for --color-diagnostics=auto
instead of --color-diagnostics=always
for compatibility with LLVM lld.pkg-config
is no longer needed to build mold.--package-metadata
option is supported. (https://github.com/rui314/mold/issues/505, e9f6715c6ef01b5bf02dc8bf36bce8af4f07b44e)--preload
flag has been removed. (a85b1f539a748b6508733c8c5c2cd28da4dfb796)mold is an open-source project, and we accept donations via GitHub Sponsors and OpenCollective. We thank you to everybody who sponsors our project. In particular, we'd like to acknowledge the following organizations and people who have sponsored $32/mo or more during this release cycle:
We'd also like to thank HPC Engineering at AWS to donate $5,000 AWS credits to us.
Published by rui314 over 2 years ago
mold 1.2.1 is a new release of the high-speed linker. This release contains the following bug fixes.
--gdb-index
have been fixed.--thinlto-cache-dir
and --thinlto-cache-policy
for the sake of compatibility with LLVM lld. (7ebd071273691a5cc095203f6542b2b13ec6642c).symtab
. This bug has been fixed. (e088db72e006e8f1bcbc7c9561a3e22777cd33ff)/usr/local/libexec/mold/ld
is now installed as a relative symlink instead of an absolute symlink. (5803c3c200f301adc3abdb66df16d3d669712d70)Published by rui314 over 2 years ago
mold 1.2.0 is a new release of the high-speed linker. The highlight of this release is the 32-bit ARM support. We also added other features, and as always, we fixed many bugs and compatibility issues in this release.
--gdb-index
is implemented. If this option is given, mold creates an .gdb_index
section in an output file to speed up GNU debugger. Users have to compile their object files with -ggnu-pubnames
to use this flag. mold used to ignore --gdb-index
. (https://github.com/rui314/mold/commit/a7475dd5e35bd57cfdf5958e1e473a84576cf717)--start-address
, -Tbss
, -Tdata
, -Ttext
, --oformat=binary
, --disable-new-dtags
--preload
flag has been marked as deprecated. It's still usable, but a warning message will be displayed if that flag is given.-dy
and -dn
are now accepted as aliases for -Bdynamic
and -Bstatic
, respectively. (82e80721ac2ca9ed899bcf09ca1b56469e537e38)-static-pie
now works with older versions of glibc thanks to a few bug fixes. (3d68824dead842bc218e9cc883c3c71c5ce7c8da, 0884f279e04a6ec061c4529f5f782065bcfe560a).ctors
and .dtors
sections are now recognized by mold, and their contents are sorted with a special rule. This shouldn't affect most build environments because these sections have been superseded by .init_array
and .fini_array
sections a long time ago. But it looks like some old i386 compilers are still using .ctors
and .dtors
. (392781a0e2ae005a9a728d48f222b2fa3a919a72)_TLS_MODULE_BASE_
symbol. A reference to this symbol can occur if -mtls-dialect=gnu2
is given to a compiler. The flag tells the compiler to use TLSDESC mechanism instead of the regular TLS access mechanism to access thread-local variables. (5feab826de522fd5d6d7dee05ec7ae9ede347576)R_AARCH64_LD_PREL_LO19
relocation. (146ddd711c61a4e7bb5102e604b10410d75e2f81)R_RISCV_ALIGN
is implemented. (0daf6233fbd672b372440bd7b43bc70c64af7945)Published by rui314 over 2 years ago
mold 1.1.1 is a maintenance release of the high-performance linker. It contains the following new features, bug fixes and performance improvements including memory usage reduction.
--dependency-file
option has been added. The option is analogous to the compiler's -MM
option; it generates a text file containing dependency information in the Makefile format, so that you can include a generated file into a Makefile to automate the file dependency management. (a054bcd4ff1e0381d0f942c1bc0ba4e82e888e0e)--reverse-sections
option. If the option is given, mold reverses the list of input sections before assigning them the addresses in an output file. This option is useful to find a bug in global initializers (e.g. constructors of global variables.) In C++, the execution order of global initializers is guaranteed only within a single compilation unit (they are executed from top to bottom.) If two global initializers are in different object files, they can be executed in any order. Reversing the execution order of the global initializers in different input files should help you identify a bug in your program. If your program does not work with -Wl,--reverse-sections
, your program depends on the undefined behavior.--shuffle-sections
now takes an optional seed for the random number generator in the form of --shuffle-sections=<number>
. (8f21cc386e555de212899c8ab0b4674c77616f60)--disable-verify
, --lto-O
, --lto-cs-profile-file
, --lto-cs-profile-generate
, --lto-debug-pass-manager
, --lto-emit-asm
, --lto-obj-path
, --lto-partitions
, --lto-pseudo-probe-for-profiling
, --lto-sample-profile
, --no-legacy-pass-manager
, --no-lto-legacy-pass-manager
, --opt-remarks-filename
, --opt-remarks-format
, --opt-remarks-hotness-threshold
, --opt-remarks-passes
, --opt-remarks-with_hotness
, --save-temps
, --thinlto-emit-imports-files
, --thinlto-index-only
, --thinlto-index-only
, --thinlto-jobs
, --thinlto-jobs
, --thinlto-object-suffix-replace
, --thinlto-prefix-replace
(e4134337529b16443b6232de211b2ec5860d88e5)-noinhibit-exec
and --warn-shared-textrel
have been supported.time -v
. (f2d27d8d242762307646045bad3707cf25493ed6, 7068c0cd0f87e598af0f12dbfce1e044e0894eb3, 83e05dae284cc748596c937afe5290da01f24154, 4dae89672698ffc3692d2abef9108e98fbf05b02)-z ibtplt
is given), mold used to create a PLT section in which each entry is 32 bytes long. We optimized the machine code sequence of the CET-enabled PLT section, so each PLT entry now occupies only 16 bytes, reducing the size of .plt
by almost half. (480efdedf0ccf0eb86239e93bfbb36e8438dc294)-static-pie
now works with recent versions of glibc. Previously, statically-linked position-independent executable would crash on startup when linked with mold. (3999aa8b1857ed57a721f7f110a5e35940376923)-mcmodel=large
(https://github.com/rui314/mold/issues/360). This issue has been fixed. (4aa4bfa4a6e46af59ee5f83cf42d4f23f02cc348)-gz
option. (https://github.com/rui314/mold/issues/361) This issue has been fixed. (30683645c247aa47146d97ecf19b6de2436deb32).init_array
sections if input files contain both writable and non-writable .int_array
sections. That caused an issue that some initializer functions would not be executed on process startup. (https://github.com/rui314/mold/issues/363). This issue has been fixed. (41986279deb2ec77f69d027cc38cda23c9d2adf1).got.plt
is missing. This issue has been fixed by always creating _GLOBAL_OFFSET_TABLE_
symbol in .got
on any target. mold used to try to create the symbol in .got.plt
on x86-64 or i386. (eb79859ea244eaa9a91477643e609cb173144859)Published by rui314 over 2 years ago
mold 1.1 is a new release of the high-performance linker. It contains a few new major features and various bug fixes.
Starting from this release, we distribute not only source but pre-compiled binaries for Linux. You can download a tar file containing mold
executable at the bottom of the page. You can copy the contents of the tar file to /usr/local
or just use without installation by directly specifying its full path.
ld.bfd
or ld.lld
if it encountered a GCC IR (intermediate representation) file or an LLVM IR file to delegate the task to the LTO-capable linkers, respectively. Now, mold handles IR files directly. This feature is implemented using the linker plugin API which is also used by GNU ld and GNU gold. Note that the LTO support has been added for completeness and not for speed. mold is only marginally faster than the other linkers for LTO builds because not linking but code optimization dominates. (46995bcfc3e3113133620bf16445c5f13cd76a18)-emit-relocs
option is supported. If the option is given, mold copies relocation sections from input files to an output file. This feature is used by some post-link binary optimization or analysis tools such as Facebook's Bolt. (26fe71d64c3af2812b6349a0098d857ce2419156)--shuffle-sections
option. If the option is given, the linker randomly shuffle the order of input sections before fixing their addresses in the virtual address space. This feature is useful in some situations. First, it can be used as a strong form of ASLR (address space layout randomization). Second, you can enable it when you are benchmarking some other program to get more reliable benchmark numbers, because even the same machine code can vary in performance if they are laid out differently in the virtual address space. You want to make sure that you got good/bad benchmark numbers not by coincidence by shuffling input sections. (7e918971545df3a4c90d1eaef116fc58da97da3c)--print-dependencies
and --print-dependencies=full
options were added. They print out dependencies between input files in the CSV format. That is, they print out the information as to which file depends on which file to use which symbol. We added this feature with a few use cases in mind. First, you can use this to analyze why some object file was pulled out from an archive and got linked to an output file. Second, when you want to eliminate all dependencies to some library, you can find all of them very easy with this feature. Note that this is an experimental feature and may change or removed in feature releases of mold. (a1287c26b97d207850e88bc8147c85e63bdff92a)--warn-once
(f24b99750102eb32f717a9a4153a7cb14120220b), --warn-textrel
(6ffcae428622c216b5f77384a7456fa248981d7c)libxxhash
has been eliminated. (e5f4b967ed9339fc215dadcef62d656c6d98228a)PT_GNU_RELRO
segment is now aligned up to the next page boundary. Previously, mold didn't align it up, and the runtime loader align it down, so the last partial page would not be protected by the RELRO mechanism. Now, the entire RELRO segment is guaranteed to be read-only at runtime. (0a0f9b3ad5ef787fa4d318846ba1641ffc180769).got.plt
section is now protected by RELRO if -z now
is given. This is possible because writes to .got.plt
happen only during process startup if all symbols are resolved on process startup. (73159e241d6c34d76857fe0bfaf0da5069b412c4)-fgnu-unique
) are mixed with ones created with newer GCC or Clang (with -fno-gnu-unique
) (https://github.com/rui314/mold/issues/324). Now, mold accepts such input files. (e65c5d2a1c2484927beb98669c552433b7dc98fd).symtab
section now contains section symbols and symbols derived from input shared object files. (e4c03c238e656cd10955acb424b50ccdec1bd9a5, 1550b5affffd221a9c23de740252174a504c2949).bss
and .dynbss
sections. mold generated .dynbss
to contain copy-relocated symbols. The section has been renamed .copyrel
to workaround the valgrind's issue. (0f8bf23bcf52d119ac329d28dce5d562235f6503)Published by rui314 over 2 years ago
mold 1.0.3 is a maintenance release of the high-speed linker. It contains only the following bug fix:
build-static.sh
didn't create a statically-linked mold
executable (https://github.com/rui314/mold/issues/315). The problem is now fixed. (601b9e691c24f51345ec9242e8017054c166fc36)If you are not using build-static.sh
to build mold
executable, you don't need to upgrade from 1.0.2 to 1.0.3.
Published by rui314 almost 3 years ago
mold 1.0.2 is a maintenance release of the high-speed linker. It contains a few new features and various bug fixes as well as performance improvements.
ld.bfd
or ld.lld
if GCC-based LTO (link time optimization) or LLVM-based LTO are requested, respectively. This is a temporary hack until mold gains native LTO support. (a5029d19a8fb70f77cb85f5ad58222d385abf716)-z ibt
(9ca6a9dc5e060e1283f9c3b413665640b02f1de5), -z cet-report
(31a43a7ba69f5ed0b22163dcd51f667055525831), -z shstk
(e29bd8f42b5571494138d22036fb2a4a2a2b55d2), -z ibtplt
(fbfa01dcd1f5c7a38a78ea6350d3635e1189b0e5)-z now
is given. (0370e7f1b355cf577ee3b462148337ece3671e0b)-z pack-dyn-relocs=relr
. The good news is that it can typically reduce PIE (position-independent executable) size by a few percent. This is not a negligible saving because PIE is now default on many systems for security reasons. The bad news is that it needs a runtime support. To our knowledge, it's supported only on ChromeOS, Android, Fuchsia and SerenityOS at this moment. We need to wait for a while for other systems to catch up. (bd6afa1b23218c70877d318e8aac722298f931a8)*
metacharacter, you'll likely to see a significant speedup. (d0c1c4db19b41d7b7720640c68faf7c79828437a)-static
flag is given. (https://github.com/rui314/mold/issues/271, be6ae07ac181eb783f2d7428572a5e0aab879efa)--version
string. We had this identification string for some ./configure
scripts that didn't work without it, but it causes other compatibility issue such as https://github.com/rui314/mold/issues/284. Now, mold --version
prints out something like mold 1.0.2 (compatible with GNU ld)
. We still need "GNU ld" for many ./configure
scripts. (cea6a569afa544826c91fda7ef0f9941f50c9459).ctors
/.dtors
sections into .init_array
/.fini_array
sections. mold used to convert them but in a wrong way. Since .ctors
/.dtors
have been superseded by .init_array
/.fini_array
long ago, it should be fine to stop doing this now. (4348417dd8df5ca19d3c173f9447f72a0fe39985)Published by rui314 almost 3 years ago
mold 1.0 is a maintenance release of the high-speed linker. It contains a few new features and various bug fixes.
make install
now creates /usr/local/libexec/mold/ld
as a symlink to the mold
executable. We do this for GCC. By passing -B/usr/local/libexec/mold
, you can tell GCC to use ld
inside that directory instead of /usr/bin/ld
. (e8dcecfff0391af8d04d00845c36070a628e8c02)SYSTEM_XXHASH=1
to make
. (665bffa52f3fc979c608c72f3fdf2f8280eeb13b)extern "C++"
directive is now supported in the dynamic list. (7aa5c393e4bc1d35509f9ee7cc2980314359f89c)--color-diagnostics
is supported. mold used to ignore that flag. (6e290aab3e2bf445df46d117832579bf6ab2aa1c)*
but also ?
are now treated as special characters in the version script wildcard pattern. (31b0248b05e433c0589fe2736e61852515427d9a)--threads=N
option has been added as an alias for --thread-count=N
. (f9ff04866e9926b343d71d45facdb693ef37928d)--defsym
(f6e800655b3ed6a5118017d4cdfddbba3b4fbf40), -z nodefaultlib
(8c86c2849697dd2a5747b075fa818ebead6b09e1), -z separate-code
, -z noseparate-code
and -z separate-lodable-segments
(5601cf42366a20e04b080923fe535ab502929732), -z max-page-size
(f3766cda81f395adc84f79f2ab057a747172a1ef)-z
option. (8bc57363c8ea90c8bdc99274a03da1e347030255)-shared
, -z defs
and -warn-undefined-symbols
are specified. Even though this behavior makes sense, it's not compatible with GNU ld which promotes such symbols into dynamic symbols. This incompatibility causes a link failure for Firefox. Since 1.0.1, mold behaves the same as GNU ld. (04ccd4dbdd77f6bc10508b19ab12e46cc9c32731)--sysroot
in some conditions. That caused a link failure for ClickHouse (https://github.com/rui314/mold/issues/150). This bug has been fixed. (135f17c5aa930fdd2441080a086f0a6379774c57)Published by rui314 almost 3 years ago
mold 1.0 is the first stable and production-ready release of the high-speed linker. On Linux-based systems, it should "just work" as a faster drop-in replacement for the default GNU linker for most user-land programs. If you are building a large executable which takes a long time to link, mold is worth a try to see if it can shorten your build time. mold is easy to build and easy to use. For more details, see README.
mold is created by a person who knows very well as to how the Unix linker should behave, as I'm also the original creator of the current version of the LLVM lld linker.
There's no fancy new features in 1.0. Actually, 1.0 is very similar to 0.9.6. That being said, we'd like to make it clear by incrementing a major version number that mold for Linux is now stable.
We are currently working on mold for macOS, and once it's complete, we'll release it as mold 2.0. After that, we'll work on mold for Windows and release it as 3.0.
mold 1.0's source tree has code for mold for macOS, but that's pre-alpha. Do not use it unless you know what you are doing.
-start-lib
and -end-lib
options are added for compatibility with GNU gold and LLVM lld.-Bno-symbolic
option has been supported.-require-defined
option has been supported.Published by rui314 about 3 years ago
mold 0.9.6 is a maintenance release of the mold linker. This release contains only a single change to fix the following issue:
Published by rui314 about 3 years ago
mold 0.9.5 is a maintenance release of the mold linker.
-z defs
option. Now, such symbols will be promoted to dynamic symbols so that they'll get another chance to be resolved at run-time. This change fixes a regression of Firefox build failure (https://github.com/rui314/mold/issues/114), which depends on this particular linker behavior to export symbols from libxul.so
.Published by rui314 about 3 years ago
mold is a new linker that is optimized for modern multi-core machines. mold is command-line compatible with the other major linkers, GNU ld, GNU gold and LLVM lld, yet it is several times faster than them. Its goal is to increase programmer productivity by speeding up program build time, especially for rapid edit-build-test-debug cycles.
mold -run
now intercepts invocations of ld
, ld.lld
and ld.gold
wherever they are in the directory hierarchy. Previously, they were intercepted only if they were in /usr/bin
. This change was made because it is not uncommon to install a compiler toolchain into a directory other than the system bin directory.Published by rui314 over 3 years ago
mold is a new linker that is optimized for modern multi-core machines. mold is command-line compatible with the other major linkers, GNU ld, GNU gold and LLVM lld, yet it is several times faster than them. Its goal is to increase programmer productivity by speeding up program build time, especially for rapid edit-build-test-debug cycles.
--sysroot
option is improved so that it's behavior is compatible with GNU ld.VERSION
linker script command is now supported.