Patch implements PHDRS linker script command with few restrictions
which at this stage looks reasonable to live with.
Known issues/restrictions:
- NONE header is not completely supported.
- First header should be PT_PHDR, and first PT_LOAD should contain FILEHDR and PHDRS attribute.
- Relro is currently disabled for linkerscript.
Main functionality is performed in createPhdrsFromScript() method.
It works like createPhdrs() but uses the options from linker script
to build headers map.
error() no longer call exit(), so you have to handle errors gracefully. In this case, if atEOF(), Token[Pos] is invalid.