forked from Imagelibrary/binutils-gdb
Add option to ar's 't' command to display the offset of elements within the archive.
PR 23107 * ar.c (display_offsets): New variable. (usage): Add description of 'O' operator. (decode_option): Handle 'O' operator. (print_descr): Pass display_offsets to print_arelt_descr. * arsup.c: Update call to printy_arelt_descr. * objdump.c: Likewise. * bucomm.c (print_arelt_descr): If offsets parameter is true then display offset of archive element within the archive. * bucomm.h: Update prototype for print_arelt_descr. * doc/binutils.texi: Update description of ar command. * NEWS: Mention the new feature. * testsuite/binutils-all/ar.exp: Add text of new feature.
This commit is contained in:
committed by
Nick Clifton
parent
fdbe37e35f
commit
1869e86f2e
@@ -361,9 +361,10 @@ modifier. In either case it does the same thing.
|
||||
@cindex contents of archive
|
||||
Display a @emph{table} listing the contents of @var{archive}, or those
|
||||
of the files listed in @var{member}@dots{} that are present in the
|
||||
archive. Normally only the member name is shown; if you also want to
|
||||
see the modes (permissions), timestamp, owner, group, and size, you can
|
||||
request that by also specifying the @samp{v} modifier.
|
||||
archive. Normally only the member name is shown, but if the modifier
|
||||
@samp{O} is specified, then the corresponding offset of the member is also
|
||||
displayed. Finally, in order to see the modes (permissions), timestamp,
|
||||
owner, group, and size the @samp{v} modifier should be included.
|
||||
|
||||
If you do not specify a @var{member}, all files in the archive
|
||||
are listed.
|
||||
@@ -456,6 +457,11 @@ Preserve the @emph{original} dates of members when extracting them. If
|
||||
you do not specify this modifier, files extracted from the archive
|
||||
are stamped with the time of extraction.
|
||||
|
||||
@item O
|
||||
@cindex offsets of files
|
||||
Display member offsets inside the archive. Use together with the @samp{t}
|
||||
option.
|
||||
|
||||
@item P
|
||||
Use the full path name when matching names in the archive. @sc{gnu}
|
||||
@command{ar} can not create an archive with a full path name (such archives
|
||||
|
||||
Reference in New Issue
Block a user