symtabAPI: Apply corrections for the library_adjust page offset 109/head
authorJosh Stone <jistone@redhat.com>
Tue, 28 Jun 2016 00:44:49 +0000 (17:44 -0700)
committerJosh Stone <jistone@redhat.com>
Tue, 28 Jun 2016 00:44:49 +0000 (17:44 -0700)
commit934c91c5f232ffcc9553628590094a7e4619c7d9
tree11b43f5ac071d527762515115de8a8026c176757
parent36f5a721f752f33f02c0b365169d5320cd4b49b5
symtabAPI: Apply corrections for the library_adjust page offset

This commit aggregates the incremental fixes that Bill Williams and I
found while investigating issue #93, rewriting libc.so.

- The offsets of new sections need to account for library_adjust when
  placing themselves after the first new section.
- TLS symbol values need *not* be adjusted, as they're section-relative.
- DT_INIT/FINI values need to be adjusted.
- x86 IRELATIVE relocations need their addends adjusted.

Fixes #93.
symtabAPI/src/emitElf.C
symtabAPI/src/emitElfStatic.C