~cyphermox/ubuntu/wily/shim/upstream

Viewing all changes in revision 309.

  • Committer: Peter Jones
  • Date: 2015-04-13 23:55:25 UTC
  • Revision ID: git-v1:d01421eb5ae67daa9a2d341099b3e58fdb2f9f9e
Align the sections we're loading, and check for validity /after/ discarding.

Turns out a) the codegen on aarch64 generates code that has real
alignment needs, and b) if we check the length of discardable sections
before discarding them, we error for no reason.

So do the error checking in the right order, and always enforce some
alignment because we know we have to.

Signed-off-by: Peter Jones <pjones@redhat.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: