boot loader: Improve code of elf header initialization
authorJohn Marino <draco@marino.st>
Sat, 14 Nov 2015 13:26:11 +0000 (14:26 +0100)
committerJohn Marino <draco@marino.st>
Sat, 14 Nov 2015 13:26:11 +0000 (14:26 +0100)
commit19976c5f53779a31cb1b85080b4162443d3034d0
treea40accfc0d518fabc239cb9297a87a29f0e95769
parentd9b1635c775585166620d614084ba762f08599de
boot loader: Improve code of elf header initialization

This has been driving me crazy.  This change has no practical difference,
but I didn't like seeing the code loop through headers twice for no good
reason.  This moves all the initialization to a single loop.
sys/boot/common/load_elf_obj.c