]> xenbits.xensource.com Git - people/liuw/mini-os.git/commit
mini-os: sort objects in binary archives
authorOlaf Hering <olaf@aepfle.de>
Tue, 3 Feb 2015 11:45:37 +0000 (12:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 11 Mar 2015 10:46:31 +0000 (10:46 +0000)
commitbd5920cb92e6799bfd64957284a9e2cfe7699039
tree363396974c6c90b71070d20230fb110469d44beb
parent55f7cd7427ef3e7fe3563a3da46d8664a2ed0d6d
mini-os: sort objects in binary archives

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).

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
[ ijc -- massaged paths to apply to external mini-os tree ]
Makefile
arch/x86/Makefile