freebsd-dev/usr.bin/ar
Kai Wang 47203048ab Handle properly when insert zero size objects into the archive:
Do not mmap 0-size objects and do not try to extract symbol from
0-size objects, but do treat 0-size objects as qualified objects and
accept them as an archive member. (A member with only the header part)

Note that GNU binutils ar on FreeBSD ignores 0-size objects, but on
Linux it accepts them. [1] But, since this is a rare usage, we can
safely ignore the compatibility issue.

Reported by:	Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net>
Pointed out by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> [1]
Reviewed by:	Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net>
Reviewed by:	jkoshy
Approved by:	jkoshy (mentor)
2008-02-24 17:57:29 +00:00
..
ar.1 Fix typo. 2008-02-23 14:34:52 +00:00
ar.c
ar.h Re-introduce the new BSDLed 'ar' to the build. 2008-02-22 06:47:45 +00:00
Makefile Clean up created turds. 2008-02-22 06:53:52 +00:00
read.c
util.c
write.c Handle properly when insert zero size objects into the archive: 2008-02-24 17:57:29 +00:00