From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2764 invoked from network); 14 Jan 2021 10:25:07 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 14 Jan 2021 10:25:07 -0000 Received: (qmail 9543 invoked by uid 550); 14 Jan 2021 10:25:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 9522 invoked from network); 14 Jan 2021 10:25:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0+6/Nah6iOsdvG80oqMTdB2bX7a4mjsxJblVQcenTyA=; b=ezuqvbIm2ywogn6S22pNkLAleT6nHkG37d0HyhdK8N3BMfq+oqPMLAp0EMTTbGCvAq 4soLIbt7LrBZ9JsNeaagfs4t/sYkzUj3/xQCUwg/3ht2wMpflEXUY36DJJu9U9VXWzkU T+UwjP2Ma/SGoMl2SZrfkkUZYwuh1oL4KQ1CSL7b8snNsdzacfyToxmRnjW98OvnyS1r kJTnMyIrdjQWRFb2oM7KiHXokYj/E+qIrb3KLyNGPSlsaNyW2H6Beh4923ddM/XlxjvZ YEpwHCIcaAt/LBHVj+yJYg96nwlM6ZXYb/kKZHI7u37+DPMNDqIqgB8pLM9i4f91QONQ TM3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0+6/Nah6iOsdvG80oqMTdB2bX7a4mjsxJblVQcenTyA=; b=f/Nxm7dmB6Bo6BO8IB/np+4ldvFEf8ATE1oTZQ2zZNCjFuxqQ6xz0PE4SYFcXlGLKt zv7VvZrQs+ZEV7+Sv6PWBEL9MAYxxRZ33SHLxShBfl01eeGTkgv3I1R/kUi5jyultbVT a6vY1lmjxRl8Gx3l0EcEQMm9LdTkRhYUq8t5nbOfPoy1dgvC6KmNJohqxWVZ/8tZkFzY Dqd8/xu9afRqzze/LeuQM3wN4VBfhi3Kjk+2Pntx2J3pC5ZOFhkIGTFDdLJF2zhUU5lG b2ph1+BjtejEwjkNxat48+gF5xo1Mi8T5a893rQ1SrAkVu19p60rK22x7ABmjNdeD5+M Ct8w== X-Gm-Message-State: AOAM533lPZA+TtrNGL9XQ7Ioytf/Yaurnn7Yhk20endSIYDowrDZq22U ZF9WIX5zSJ/57Qkt/hf6bY22R6/QAIL8ovcfuuM= X-Google-Smtp-Source: ABdhPJyq9zofETLGgKk74ImZAJ+wW6rFhWAhM+8bV6b9FkChFecuSemk5CVg/cRCFjDnD00/9Fn1q/yUW4ilR40Z+PA= X-Received: by 2002:a05:6830:2397:: with SMTP id l23mr4004904ots.357.1610619888465; Thu, 14 Jan 2021 02:24:48 -0800 (PST) MIME-Version: 1.0 References: <20210114040341.2524044-1-patrick.oppenlander@gmail.com> <20210114080939.GA5766@port70.net> In-Reply-To: <20210114080939.GA5766@port70.net> From: Patrick Oppenlander Date: Thu, 14 Jan 2021 21:24:37 +1100 Message-ID: To: Patrick Oppenlander , musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [musl] [PATCH] install symlink to liblto_plugin.so into lib/bfd-plugins On Thu, Jan 14, 2021 at 7:09 PM Szabolcs Nagy wrote: > > * patrick.oppenlander@gmail.com [2021-01-14 15:03:42 +1100]: > > From: Patrick Oppenlander > > > > The ar, nm and ranlib tools will automatically load plugins from the > > lib/bfd-plugins directory if present. > > > > With this symlink in place it is no longer necessary to use the gcc- > > prefixed versions of these tools (or the --plugin argument) to handle > > LTO objects. > > --- > > litecross/Makefile | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/litecross/Makefile b/litecross/Makefile > > index 8ec0ed2..8bae518 100644 > > --- a/litecross/Makefile > > +++ b/litecross/Makefile > > @@ -254,6 +254,8 @@ install-binutils: | obj_binutils/.lc_built > > install-gcc: | obj_gcc/.lc_built > > cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" DESTDIR=$(DESTDIR)$(OUTPUT) install > > ln -sf $(TARGET)-gcc $(DESTDIR)$(OUTPUT)/bin/$(TARGET)-cc > > + mkdir -p $(DESTDIR)$(OUTPUT)/lib/bfd-plugins > > + ln -sf ../../libexec/gcc/$(TARGET)/$(file < src_gcc/gcc/BASE-VER)/liblto_plugin.so $(DESTDIR)$(OUTPUT)/lib/bfd-plugins > > file < BASE-VER > > does not do anything useful for me, did you mean > > cat BASE-VER > > ? It's this: https://www.gnu.org/software/make/manual/html_node/File-Function.html I think it was added in GNU make 4.0 around 2013. > this does not work if different TARGETs are installed to the same OUTPUT > > or is the plugin independent from target? > then maybe a copy would be better than a symlink I believe the plugin is target independent but will change between gcc versions. The plugin is only ~100k so a file copy should be fine. I can submit a new patch tomorrow when I'm back on the dev box. Patrick