mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user