diff options
| author | Fangrui Song <maskray@google.com> | 2019-10-17 11:34:29 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-10-17 11:34:29 +0000 |
| commit | a69cc92cb5083d9d9f33c19587db1cdcab742637 (patch) | |
| tree | 5fcf46cd2e5afa7c6fdfe2bcce08fb030c65aa12 /llvm/docs/CommandGuide | |
| parent | 9dce25a9fa953cec1b89009226cdc463166a7ad4 (diff) | |
| download | bcm5719-llvm-a69cc92cb5083d9d9f33c19587db1cdcab742637.tar.gz bcm5719-llvm-a69cc92cb5083d9d9f33c19587db1cdcab742637.zip | |
[llvm-ar] Implement the O modifier: display member offsets inside the archive
Since GNU ar 2.31, the 't' operation prints member offsets beside file
names if the 'O' modifier is specified. 'O' is ignored for thin
archives.
Reviewed By: gbreynoo, ruiu
Differential Revision: https://reviews.llvm.org/D69087
llvm-svn: 375106
Diffstat (limited to 'llvm/docs/CommandGuide')
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-ar.rst | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/docs/CommandGuide/llvm-ar.rst b/llvm/docs/CommandGuide/llvm-ar.rst index 1073d96cb7e..a138dcf1683 100644 --- a/llvm/docs/CommandGuide/llvm-ar.rst +++ b/llvm/docs/CommandGuide/llvm-ar.rst @@ -100,15 +100,15 @@ r[abu] *files* or insert them at the end of the archive if they do not exist. If no *files* are specified, the archive is not modified. -t[v] +t[vO] Print the table of contents. Without any modifiers, this operation just prints the names of the members to the standard output. With the *v* modifier, **llvm-ar** also prints out the file type (B=bitcode, S=symbol table, blank=regular file), the permission mode, the owner and group, the - size, and the date. If any *files* are specified, the listing is only for - those files. If no *files* are specified, the table of contents for the - whole archive is printed. + size, and the date. With the :option:`O` modifier, display member offsets. + If any *files* are specified, the listing is only for those files. If no + *files* are specified, the table of contents for the whole archive is printed. x[oP] @@ -145,6 +145,10 @@ section (above) to determine which modifiers are applicable to which operations. When extracting files, this option will cause **llvm-ar** to preserve the original modification times of the files it writes. +[O] + + Display member offsets inside the archive. + [u] When replacing existing files in the archive, only replace those files that have |

