https://sourceware.org/bugzilla/show_bug.cgi?id=33600
Bug ID: 33600
Summary: ar: Missing thin archive support with VMS and XCOFF
targets
Product: binutils
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: macro at orcam dot me.uk
Target Milestone: ---
Target: alpha*-*-*vms* ia64*-*-*vms* powerpc*-*-aix*
powerpc*-*-beos* powerpc*-*-macos* rs6000-*-*
There appears BFD backend code there to support thin archives with VMS
and XCOFF targets however the T modifier flag is silently ignored by AR
and a regular archive created instead.
This is probably most easily observed by running `ar rcT' on a set of
object files, then removing one of the object files, and then trying to
access the corresponding object file from within the archive. With a
regular archive it's supposed to succeed, because a copy has been stored
within, however for a thin archive it's expected to fail, because the
member file has only been linked rather than copied and it's now gone.
Say:
$ ar rcD ab.a a.o b.o
$ ar rcDT abt.a a.o b.o
$ rm a.o
$ ar tv ab.a
rw-r--r-- 0/0 884 Jan 1 01:00 1970 a.o
rw-r--r-- 0/0 884 Jan 1 01:00 1970 b.o
$ ar tv abt.a
ar: abt.a: No such file or directory
$
--
You are receiving this mail because:
You are on the CC list for the bug.