From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 3/3] mini-os: sort objects in binary archives Date: Thu, 5 Feb 2015 12:24:29 +0000 Message-ID: <1423139069.24924.99.camel@citrix.com> References: <1422963937-16033-1-git-send-email-olaf@aepfle.de> <1422963937-16033-4-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1422963937-16033-4-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Samuel Thibault , Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2015-02-03 at 12:45 +0100, Olaf Hering wrote: > When building stubdom the mini-os objects are also linked into the > binary. Unfortunately the linker will place them in the order found in > the archive. Since this order is random the resulting stubdom binary > differs when it was built from identical sources but on different > build hosts. To help with creating a reproducible binary the elements > in an archive must simply be sorted before passing them to $(AR). OOI why does this problem not also apply the to the regular .a and .so files we build?