AR(1) GNU Development Tools AR(1) (NAME) ar - (SYNOPSIS) ar [-X32_64] [-]p[mod] [--plugin name] [--target bfdname] [--output dirname] [--record-libdeps libdeps] [--thin] [relpos] [count] archive [member...] (DESCRIPTION) GNU ar . (archive) ( ) . ( ) . GNU ar ar . ( a.out) ( coff) . ar (binary utility) . ar --record-libdeps . s ar (relocatable object modules) . ar ( q) . (linking) . nm -s nm --print-armap . ar ranlib . GNU ar thin () . (build tree) . thin . . thin (flattened) thin thin ( ). . . GNU ar . ar Unix -M "librarian" MRI..SH " (OPTIONS)" GNU ar p mod . (-) . p : d . member... . v ar . m . . "m" member a b i . p . v . member . q member... archive . a b i . v ar . ar . GNU ar . - GNU ar qs r - . r member... archive ( ). q . member... ar . a b i . v a r ( ) . s . << >> . . t archive member... . O . () v . member . ( fie) ( b.a) ar t b.a fie --- ar t b.a. x ( member) . v ar . member . (thin archive) P : ".." . --output . (mod) p : a . a relpos archive . b . b relpos archive ( i). c . archive . . D (deterministic). UID GID . ar . binutils --enable-deterministic-archives . U . f . GNU ar . ar . f . i . i relpos archive ( b). l . (linker) . . l "-L/usr/local/lib -lmydep1 -lmydep2" N count. . count . o . . O . t . P . POSIX GNU . GNU ar P (thin archive) . P r P . ar rcST archive.a subdir/file1 subdir/file2 file1 "subdir/file1" "file1" . P . s (object-file) . . ar s ranlib ..IP S 4 . . (linker) . ar S ranlib . T --thin. T ar X/Open System Interface . u ar r... . . u r () . qu q . - (deterministic) D u . U (deterministic) . D : UID GID (file mode) . binutils --enable-deterministic-archives . v (verbose) . v . V ar . ar : --help ar . --version ar . -X32_64 ar AIX -X32_64 . GNU ar . ar -X -X32 ar AIX . --plugin name --plugin name ar name (link-time optimization). (toolchain) . --plugin ar ${libdir}/bfd-plugins . -plugin ld . ar ${libdir}/bfd-plugins . GCC liblto_plugin.so.0.0.0 . Clang LLVMgold.so . GCC . --target target --target bfdname . --output dirname --output . . - x . --record-libdeps libdeps --record-libdeps l . --thin (thin) . . @file file . @file . file . file (whitespace) . . ( ) . file @file . (SEE ALSO) nm(1) ranlib(1) Info binutils..SH " (COPYRIGHT)" (c) 1991-2025 Free Software Foundation, Inc. / (GNU Free Documentation License) 1.3 Free Software Foundation (Invariant Sections) (Front-Cover Texts) (Back-Cover Texts) . "GNU Free Documentation License" . binutils-2.45.1 2026-01-23 AR(1)