From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id D65953858D34 for ; Wed, 21 Feb 2024 17:49:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D65953858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D65953858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::636 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708537744; cv=none; b=sh9S5NCgjIDAlQHC850nLMFmUS+opECfSwejPvGhCeGuaAWvXPo705G4HA4nfuAFED/UsjiLs8ppo/lLfAXXnl1t9I/ZkNALT/qMEG9aRjxxM47jUlPtWmyMFSdut0VZrh9yttC4CzFNngEuVMNUcl9wiIyqJdlyJNCfKxQ8CaA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708537744; c=relaxed/simple; bh=Bqu+IruE5pul6UDq7GpX8FE9V5yzMfjFMhxUewcDg6w=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=AoPgxi4KYR8tPbEe88OTRotCZniY59KM9zCQDkaAZQdbrDQwQMRypaZpPgmx+AkPNB8WI/s7c+awaisjNfn1m5Q8JaxZTcq0say8lcOA3xY23iuUlEtjHhLZ34wD8z4sEIYzRVRSDiADiG8W8TnMzUIo+J9A3VOQnJzAuwjfbGY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a3e75e30d36so2507366b.1 for ; Wed, 21 Feb 2024 09:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708537740; x=1709142540; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bqu+IruE5pul6UDq7GpX8FE9V5yzMfjFMhxUewcDg6w=; b=VUgGAY59cTrHBXS+zz2SGnROzPkEqF7l8jNMxQSxyYlywLQ5Mgy+tsbAUFD0dZ63PP K0EuymTdYmRIpHUuQo/dHuc7FVsZlzNBHGwMLNZd7aHkLzCSNnSYixfqJhDcydHXnDkx TV5hPr6/6dVxaqe5jW+9uOAduGhEIXAHKZLdgy2jyIl/yVKvJClqAhGebhulbv2XYMM8 eTO94lzaef3C8/lATpfPZ6oFvtNff52s/IqRyQCAXK7aC/WU2XN9TS0p3Kj2kK2qlxfJ GNfI0hV2w0Eeac4zI+mAW+Hz0dZl7SkaYQ+bJVlBj9iUQ4SP7ZQSJQ+hk8tQv8svzmI3 oaEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708537740; x=1709142540; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bqu+IruE5pul6UDq7GpX8FE9V5yzMfjFMhxUewcDg6w=; b=DxTnhazYrFEeaqOwbZDWDcNgx4Gy7Y21uWPNu/Z9i94vCRsWjPjw3Y01Pp0EWZIDgB Q89iC0H2WLtYoO+5ONLxlVUjJ4R5y3uxyP4FkHXqU68cimXWGmsiLNVXuA6fsT7Qf86r SXZCVnW8OUPrzOMP0N98yVX7Pn97uMH4PgrOWFpPAKNeyxw4xxsBHZUFICrBR1T37lYn iDW/jqMRA9ARMwI2iVkd4dg5SlKzNNoOtEEnSeASNzboRJYAyTk/Qa4qMUWsQ2F1y3Px oMb7mYOYwN9nezGXr3bmKdh2lJZPE+/WByHUjP0O8uLFbGOZ5v995wQrBFyhTOCZeWzE rrKw== X-Gm-Message-State: AOJu0YycqZ4YNYFVzp9u5mWr3uOrkKmtYuXZOjeiumjmNJ2gAsrwOauM +nXK/3ukz4i36nQwgoOSYAPLiwuOdtDrJIXcDvY1bOfAfcTaLIUPi8Gya3Ep2RyYdyPuWDrbIXL J7zlFsfMxI+bekE0OkgSwFjY4rYUaTdCUKYE= X-Google-Smtp-Source: AGHT+IEPLz0OV3PJ8rda5ETYGzx1dS1LVOxvpG06aeRZRasKQ9f7ZSszmY7mV88AX6A8z9ZQd4Pbs65HHazDv9/hRDw= X-Received: by 2002:a17:906:4895:b0:a3f:2168:214b with SMTP id v21-20020a170906489500b00a3f2168214bmr232038ejq.1.1708537740375; Wed, 21 Feb 2024 09:49:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 21 Feb 2024 17:48:49 +0000 Message-ID: Subject: Re: ld: document static libraries when performing static linking To: Christian Tramnitz Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 21 Feb 2024 at 17:29, Christian Tramnitz via Gcc wrote: > > Hello, > > For statically linked binaries one wants to keep track of external > libraries that were pulled in at link time. I haven't found any > initiatives or standards trying to achieve this yet, so I would like > to make a proposal. > > ld already supports the `--depedency-file=` option to create a > depfile, to some degree, documenting dependencies in Makefile format. > While it's a good starting point, it's not sufficient. The linker is part of Binutils not GCC: https://www.gnu.org/software/binutils/ You probably want to use the binutils mailing list, not the GCC one.