Date: Sun, 24 Feb 2008 17:57:29 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/ar write.c Message-ID: <200802241757.m1OHvTfT067366@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kaiw 2008-02-24 17:57:29 UTC
FreeBSD src repository
Modified files:
usr.bin/ar write.c
Log:
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)
Revision Changes Path
1.2 +9 -3 src/usr.bin/ar/write.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802241757.m1OHvTfT067366>
