Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "H.J. Lu via Gdb-patches" <gdb-patches@sourceware.org>
To: binutils@sourceware.org
Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org,
	Joel Brobecker <brobecker@adacore.com>
Subject: [PATCH 0/2] Check if AR works with --plugin and rc
Date: Mon, 11 Jan 2021 08:57:04 -0800	[thread overview]
Message-ID: <20210111165706.92117-1-hjl.tools@gmail.com> (raw)

AR from older binutils doesn't work with --plugin and rc:

[hjl@gnu-cfl-2 bin]$ touch foo.c
[hjl@gnu-cfl-2 bin]$ ar --plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
[hjl@gnu-cfl-2 bin]$ ./ar --plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
./ar: no operation specified
[hjl@gnu-cfl-2 bin]$ ./ar --version
GNU ar (Linux/GNU Binutils) 2.29.51.0.1.20180112
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
[hjl@gnu-cfl-2 bin]$

Check if AR works with --plugin and rc before passing --plugin to AR and
RANLIB.

Tested:

1. Binutils build
2. ./src-release.sh gdb
3. ./src-release.sh binutils 

with binutils 2.30.

H.J. Lu (2):
  GCC: Check if AR works with --plugin and rc
  Binutils: Check if AR works with --plugin and rc

 bfd/configure        |  13 ++++--
 binutils/configure   |  13 ++++--
 config/gcc-plugin.m4 |  12 +++++
 configure            | 102 +++++++++++++++++++++++++++++++++++++++++++
 gas/configure        |  13 ++++--
 gprof/configure      |  13 ++++--
 ld/configure         |  13 ++++--
 libctf/configure     |  13 ++++--
 libiberty/configure  | 102 +++++++++++++++++++++++++++++++++++++++++++
 libtool.m4           |   9 +++-
 opcodes/configure    |  13 ++++--
 zlib/configure       |  13 ++++--
 12 files changed, 304 insertions(+), 25 deletions(-)

-- 
2.29.2


             reply	other threads:[~2021-01-11 16:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-11 16:57 H.J. Lu via Gdb-patches [this message]
2021-01-11 16:57 ` [PATCH 1/2] GCC: " H.J. Lu via Gdb-patches
2021-01-11 23:27   ` Alan Modra via Gdb-patches
2021-01-12  0:07     ` V2 " H.J. Lu via Gdb-patches
2021-01-12  0:22       ` Alan Modra via Gdb-patches
2021-01-12  0:24         ` H.J. Lu via Gdb-patches
2021-01-11 16:57 ` [PATCH 2/2] Binutils: " H.J. Lu via Gdb-patches
2021-01-11 23:05 ` [PATCH 0/2] " Alan Modra via Gdb-patches
2021-01-11 23:08   ` H.J. Lu via Gdb-patches

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=20210111165706.92117-1-hjl.tools@gmail.com \
    --to=gdb-patches@sourceware.org \
    --cc=binutils@sourceware.org \
    --cc=brobecker@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl.tools@gmail.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