Regen the internal section hash lookup table after the section array
is reallocated.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2911 95820547-d848-0410-985e-9ae8fe0fa350
Do not generate DT_DEBUG for share libraries.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2912 95820547-d848-0410-985e-9ae8fe0fa350
Generate DT_RELCOUNT/DT_RELACOUNT if the linker emits *_RELATIVE
dynamic relocations.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2913 95820547-d848-0410-985e-9ae8fe0fa350
Do not allocate buffer for .eh_frame_hdr section twice.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2914 95820547-d848-0410-985e-9ae8fe0fa350
* Do not create .interp section for shared libraries.
* Do not emit PT_PHDR or PT_INTERP program headers for shared libraries.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2915 95820547-d848-0410-985e-9ae8fe0fa350
Emit PT_GNU_EH_FRAME segment when command line option "--eh-frame-hdr"
is specified.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2916 95820547-d848-0410-985e-9ae8fe0fa350
When generating dynamic objects:
* Link .dynamic section to .dynstr section.
* Link .hash section to .dynsym section.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2917 95820547-d848-0410-985e-9ae8fe0fa350
Make sure "sh_info" field of .dynamic section header is set to the
index of the first non-local symbol in the dynamic symbol table.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2918 95820547-d848-0410-985e-9ae8fe0fa350
Use fixed maximum number of internal section to simplify the code and
to avoid bugs like refering to invalid internal section pointers after
the internal section array buffer is reallocated.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2919 95820547-d848-0410-985e-9ae8fe0fa350
Use a flag to indicate whether an input section need to apply
relocations.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2920 95820547-d848-0410-985e-9ae8fe0fa350