From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 68F003948824 for ; Wed, 23 Feb 2022 11:59:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 68F003948824 Received: by mail-wr1-x42c.google.com with SMTP id d17so4345696wrc.9 for ; Wed, 23 Feb 2022 03:59:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=wCyZbOiE5CbeJ+ZqcEAHFFe2MESa8XA72yGfgM1znow=; b=uc1ONJqXaKHRY4JTnbhTh0FBNCTD5GlxT79qpfeae4MMPF3R8co3iT8gE9laUHgZZz XHfMI8RGhkRMxJznp6xeljUdo4fklyEuW/e1ZTYpd5H/mfqN/2dlr6GKbBSWVoIJYxx6 Qs/wpvmDKX2DIw2PQHM5AeHvGBiYUocKOirveT9ajw7mX6YMTRn9pNqHeZqN4Tdd5H5e B+AUeOMBTpypsZ3mZEs2TdbGWngYxMQXP4Jn1NqjIYxzAWw6KrRmQZipJEVqXQ2b4VQh 0c9aC0BNCimmjI/baf6X49wLYruTgOJFsLXI7a6OQBw9n4GeLeLYbuKHhPimeSkRjCaj pyDA== X-Gm-Message-State: AOAM530wjALOkymYuNzWrLFYTSZzw8+YNbldQ+aBvxEfaTYLTqUnbeCQ 1SyDSCP1MLAjErWZc/iArk9VoZlJD9sOco+K5Zc= X-Google-Smtp-Source: ABdhPJxsKFtd45w5zkUAqttb7Fg6Q1OUrISObonvUJ9LXvEouaRBKsqS1IDgaFbn7h0HAdAjzXQR2b1xNoEDGsY1PA4= X-Received: by 2002:a5d:6e0f:0:b0:1ed:a72f:8842 with SMTP id h15-20020a5d6e0f000000b001eda72f8842mr2301997wrz.568.1645617555391; Wed, 23 Feb 2022 03:59:15 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 23 Feb 2022 11:59:04 +0000 Message-ID: Subject: Re: Why ld options are not listed in GCC manual? To: =?UTF-8?B?5rGfIOmYtOS4gOWTpQ==?= Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2022 11:59:18 -0000 On Wed, 23 Feb 2022 at 11:56, =E6=B1=9F =E9=98=B4=E4=B8=80=E5=93=A5 via Gcc= -help 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). 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 th= e GCC linker name ld? GCC doesn't name it that, UNIX does. The name 'ld' is much older than GCC.