cvs commit: src/usr.bin/ar write.c
Kai Wang
kaiw at FreeBSD.org
Sun Feb 24 17:57:29 UTC 2008
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
More information about the cvs-src
mailing list