diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-04 20:28:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-04 20:28:29 +0000 |
commit | 52af6a44ad1f772d5bf3e714a8fef86783589ed4 (patch) | |
tree | 795cf31a8a20c184cc37a34216666bae20bccfdb /binutils/ar.1 | |
parent | 27b1ec94784b837c366ebd3a2cfa754f07620368 (diff) | |
download | gdb-52af6a44ad1f772d5bf3e714a8fef86783589ed4.zip gdb-52af6a44ad1f772d5bf3e714a8fef86783589ed4.tar.gz gdb-52af6a44ad1f772d5bf3e714a8fef86783589ed4.tar.bz2 |
* ar.c (replace_members): In verbose messages, use 'r' when
replacing a member, and 'a' when adding one.
* ar.c (truncate): New static variable.
(normalize): Change return type to const char *. Add abfd
argument. Change all callers. If truncate, chop the filename to
abfd->ar_max_namelen.
(main): For the 'f' modifier, set truncate to true. Don't change
quick_append to replace to truncate is true.
(do_quick_append): If truncate, set BFD_TRADITIONAL_FORMAT.
(write_archive): Likewise.
* binutils.texi, ar.1: Document 'f' modifier.
PR 6888.
Diffstat (limited to 'binutils/ar.1')
-rw-r--r-- | binutils/ar.1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/ar.1 b/binutils/ar.1 index 93d8777..fac6223 100644 --- a/binutils/ar.1 +++ b/binutils/ar.1 @@ -364,6 +364,18 @@ issued unless you specify in advance that you expect to create it, by using this modifier. .TP +.B f +Truncate names in the archive. +.B ar +will normally permit file names of any length. This will cause it to +create archives which are not compatible with the native +.B ar +program on some systems. If this is a concern, the +.B f +modifier may be used to truncate file names when putting them in the +archive. + +.TP .B i Insert new files \c .I before\c |