Scroll to navigation

AR(1) General Commands Manual AR(1)


sdar - create, modify, and extract from archives. A part of SDCC


sdar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [member-name] [count] archive-file file...


/usr/bin/sdar -M [<mri-script]
- delete file(s) from the archive
- move file(s) in the archive
- print file(s) found in the archive
- quick append file(s) to the archive
- replace existing or insert new file(s) into the archive
- act as ranlib
- display contents of archive
- extract file(s) from the archive
command specific modifiers:
- put file(s) after [member-name]
- put file(s) before [member-name] (same as [i])
- use zero for timestamps and uids/gids
- use actual timestamps and uids/gids (default)
- use instance [count] of name
- truncate inserted file names
- use full path names when matching
- preserve original dates
- only replace files that are newer than current archive contents
generic modifiers:
- do not warn if the library had to be created
- create an archive index (cf. ranlib)
- do not build a symbol table
- make a thin archive
- be verbose
- display the version number
- read options from <file>

--target=BFDNAME - specify the target object format as BFDNAME

emulation options:
No emulation specific options

/usr/bin/sdar: supported targets: asxxxx srec symbolsrec binary ihex


Report bugs to <>


Copyright 2012 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty.


The full documentation for ar is maintained as a Texinfo manual. If the info and ar programs are properly installed at your site, the command

info ar

should give you access to the complete manual.