Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] Check if AR works with --plugin and rc
@ 2021-01-11 16:57 H.J. Lu via Gdb-patches
  2021-01-11 16:57 ` [PATCH 1/2] GCC: " H.J. Lu via Gdb-patches
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: H.J. Lu via Gdb-patches @ 2021-01-11 16:57 UTC (permalink / raw)
  To: binutils; +Cc: gcc-patches, gdb-patches, Joel Brobecker

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-01-12  0:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 16:57 [PATCH 0/2] Check if AR works with --plugin and rc H.J. Lu via Gdb-patches
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox