This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: The query about ranlib for binutils-2.22 and below
- From: Nick Clifton <nickc at redhat dot com>
- To: "Zhangwen (Esan)" <zwzhangwen dot zhang at huawei dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 3 Apr 2017 10:47:12 +0100
- Subject: Re: The query about ranlib for binutils-2.22 and below
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=nickc at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 62D82C057FA9
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 62D82C057FA9
- References: <F2AD730AE2E0D74BAEE20D4C1C6D02BD61D7D3B0@DGGEML504-MBS.china.huawei.com>
Hi Zhangwen,
> Sorry to say that binutils-2.22 was used into our project and now I have no idea to clear up the timestamps.
> Could anybody know to how use zero for timestamps and uids/gid using ranlib-2.22 or other resolution ?
Sorry, I do not think that you can do this using the 2.22 binutils, or earlier.
You could build your own version of ar from a newer binutils and use it exclusively
for eliminating the timestamps.
Or - you could use a binary editor program to zero the bytes that contain the timestamps.
Cheers
Nick