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/binutils.texi | |
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/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index f31cdb5..ac9a91f 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -344,6 +344,13 @@ created if it did not exist, when you request an update. But a warning is issued unless you specify in advance that you expect to create it, by using this modifier. +@item f +Truncate names in the archive. GNU @code{ar} will normally permit file +names of any length. This will cause it to create archives which are +not compatible with the native @code{ar} program on some systems. If +this is a concern, the @samp{f} modifier may be used to truncate file +names when putting them in the archive. + @item i Insert new files @emph{before} an existing member of the archive. If you use the modifier @samp{i}, the name of an existing archive |