aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2000-07-27 01:39:45 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2000-07-27 01:39:45 +0000
commit6e8008398d2a0f767f9cecc72f4d93e508d9faf8 (patch)
treecc2363c05c2f58254f0c2f24db14048a36f4e709 /binutils/ar.c
parent4d3dc5abff34004cdb9ca44de2a0e82501f9e76c (diff)
downloadfsf-binutils-gdb-6e8008398d2a0f767f9cecc72f4d93e508d9faf8.zip
fsf-binutils-gdb-6e8008398d2a0f767f9cecc72f4d93e508d9faf8.tar.gz
fsf-binutils-gdb-6e8008398d2a0f767f9cecc72f4d93e508d9faf8.tar.bz2
* nm.c (main): Ignore '-X32_64' as an option.
* ar.c (main): Likewise. * binutils.texi (nm): Document new option. (ar): Likewise.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 650092f..d640159 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -250,7 +250,7 @@ usage (help)
if (! is_ranlib)
{
/* xgettext:c-format */
- fprintf (s, _("Usage: %s [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"),
+ fprintf (s, _("Usage: %s [-X32_64] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"),
program_name);
/* xgettext:c-format */
fprintf (s, _(" %s -M [<mri-script]\n"), program_name);
@@ -276,6 +276,7 @@ usage (help)
fprintf (s, _(" [S] - do not build a symbol table\n"));
fprintf (s, _(" [v] - be verbose\n"));
fprintf (s, _(" [V] - display the version number\n"));
+ fprintf (s, _(" [-X32_64] - (ignored)\n"));
}
else
/* xgettext:c-format */
@@ -431,6 +432,17 @@ main (argc, argv)
xatexit (remove_output);
+ /* Ignored for (partial) AIX compatibility. On AIX,
+ the -X option can be used to ignore certain kinds
+ of object files in the archive (the 64-bit objects
+ or the 32-bit objects). GNU ar always looks at all
+ kinds of objects in an archive. */
+ while (strcmp (argv[1], "-X32_64") == 0)
+ {
+ argv++;
+ argc--;
+ }
+
if (is_ranlib)
{
boolean touch = false;