Abstract model more - break 'make check'
authornorly <ny-git@enpas.org>
Mon, 27 May 2013 03:57:46 +0000 (04:57 +0100)
committernorly <ny-git@enpas.org>
Mon, 27 May 2013 04:13:37 +0000 (05:13 +0100)
commit147edc30e5afb3fa0b17727fde972a0c1a9b275f
tree062d4667190e4921dca1b354033bfd99938480b7
parent6a9a293ebbe91ff82defbfabc30f6c23ec270a54
Abstract model more - break 'make check'

Sections are now sorted by file offset and sh_link dependencies between
them as well as PHDR-SHDR dependencies are deduced as much as possible.

The downside is that while the output should still work just fine, 'make
check' fails to establish binary equivalence of input and output if the
section table is reordered. Thankfully, in normal GCC binaries it is
already ordered so we don't have to worry about this.

Unfortunately the ELF spec is very lax in this regard so we have to draw
a line ourselves.
include/libelfu/modeltypes.h
src/elfops/check.c
src/model/check.c
src/model/fromFile.c