From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14499 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [RFC] final time64 switch-over patch series Date: Sun, 4 Aug 2019 00:31:09 -0400 Message-ID: <20190804043109.GL9017@brightrain.aerifal.cx> References: <20190802214433.GA25193@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="47533"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14515-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 04 06:31:27 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hu8B4-000CFG-E2 for gllmg-musl@m.gmane.org; Sun, 04 Aug 2019 06:31:26 +0200 Original-Received: (qmail 20038 invoked by uid 550); 4 Aug 2019 04:31:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 20020 invoked from network); 4 Aug 2019 04:31:22 -0000 Content-Disposition: inline In-Reply-To: <20190802214433.GA25193@brightrain.aerifal.cx> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14499 Archived-At: On Fri, Aug 02, 2019 at 05:44:33PM -0400, Rich Felker wrote: > >From 3c6bde03ecf2aa7dac605f0a55a1be201f3d4c5f Mon Sep 17 00:00:00 2001 > From: Rich Felker > Date: Fri, 2 Aug 2019 15:41:27 -0400 > Subject: [PATCH 5/5] [RFC] [POC] switch i386 to 64-bit time_t > > this is a proof of concept for converting one 32-bit arch, i386, to > 64-bit time_t. known issues: > > 1. the switchover of timespec padding is a hack, and needs to be done > right, but that involves making alltypes.h aware of endianness, which > probably should have been done a long time ago anyway and would get > rid of inappropriate inclusion of in some places. > > 2. the rusage, utmpx, and timex structs are not correct with regard to > ABI or functionality. they need to be fixed before this is safe to > use. > > 3. Makefile change should be its own thing. > > there are likely a lot more problems. Add a significant incomplete prerequisite I forgot about: dlsym. There needs to be a redirection for dlsym, and 32-bit archs need a second asm entry point for __dlsym_time64 which first checks the symbol name against the list of time64 redirections and rewrites the request if it's a match. Rich