public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: "江 阴一哥" <jyygxxf@outlook.com>
Cc: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: Why ld options are not listed in GCC manual?
Date: Wed, 23 Feb 2022 11:59:04 +0000	[thread overview]
Message-ID: <CAH6eHdRD55OMZm0FQXmVEX0AwPnri5EU5B79OVdGrs8RALnefA@mail.gmail.com> (raw)
In-Reply-To: <MEYP282MB2680169AC4715A5FB3F1F354B73C9@MEYP282MB2680.AUSP282.PROD.OUTLOOK.COM>

On Wed, 23 Feb 2022 at 11:56, 江 阴一哥 via Gcc-help <gcc-help@gcc.gnu.org> wrote:
>
> Dear all:
>     I am reading the GCC manual recently and find that ld options are not listed there but in Options - Untitled (sourceware.org)<http://sourceware.org/binutils/docs-2.16/ld/Options.html>. So why? Doesn't ld belong to GCC?

No, ld does not belong to GCC. On a typical linux system ld comes from
the binutils package, so that's why it's documented there. On other
systems such as Solaris it is provided by the OS, and the binutils
version can be installed as an optional extra. GCC doesn't provide ld
but just uses the ld that is already present on the system.

> There isn't even a hyperlink on the page. I also want to know why does the GCC linker name ld?


GCC doesn't name it that, UNIX does. The name 'ld' is much older than GCC.

      reply	other threads:[~2022-02-23 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 11:55 江 阴一哥
2022-02-23 11:59 ` Jonathan Wakely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH6eHdRD55OMZm0FQXmVEX0AwPnri5EU5B79OVdGrs8RALnefA@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=jyygxxf@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).