[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 3/3] mini-os: sort objects in binary archives

On Thu, Feb 05, Ian Campbell wrote:

> 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?

Either because they are built from a fixed list of input files, or the
linker places the individual object files in a fixed order into shared objects.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.