Accept command line option "--warn-shared-textrel".

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2724 95820547-d848-0410-985e-9ae8fe0fa350
Add arch-specific function "scan_reloc", which scan the relocation
entries of input objects after symbol resolution is finished.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2725 95820547-d848-0410-985e-9ae8fe0fa350
Add flags that indicates the linker should generate position-independent
executable or shared library.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2726 95820547-d848-0410-985e-9ae8fe0fa350
Make elfdump able to dump multiple GOT sections.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2727 95820547-d848-0410-985e-9ae8fe0fa350
Add a few missing symbol types.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2728 95820547-d848-0410-985e-9ae8fe0fa350
Add function ld_symbols_ref which retrieve the symbol to which the
provided symbol resolves.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2729 95820547-d848-0410-985e-9ae8fe0fa350
Add function ld_symbols_overridden which checks if a symbol can be
"overridden" when generating a shared library.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2730 95820547-d848-0410-985e-9ae8fe0fa350
Add arch-specific function is_absolute_reloc which returns 1 if the
given relocation type will produce an absolute value (address).

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2731 95820547-d848-0410-985e-9ae8fe0fa350
In the amd64 linker scirpt, split ".got" section into two sections:
".got.plt" section will hold the GOT entries for PLT, while ".got"
section will hold other GOT entries.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2732 95820547-d848-0410-985e-9ae8fe0fa350
The linker generates a normal executable by default.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2733 95820547-d848-0410-985e-9ae8fe0fa350
Do not load relocation info from shared library.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2734 95820547-d848-0410-985e-9ae8fe0fa350
Add a few helper functions (used during reloc scan) to the "reloc" module:
* ld_reloc_require_plt: check if a symbol requires a PLT entry.
* ld_reloc_require_copy_reloc: check if a copy reloc should be generated.
* ld_reloc_require_dynamic_reloc: check if a dynamic reloc should be generated.
* ld_reloc_relative_relax: check if a dyanmic reloc can be relaxed to a *_RELATIVE reloc.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2735 95820547-d848-0410-985e-9ae8fe0fa350
Make use of function ld_symbols_ref wherever possible.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2736 95820547-d848-0410-985e-9ae8fe0fa350
Implement arch-specific function is_absolute_reloc for amd64.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2737 95820547-d848-0410-985e-9ae8fe0fa350
Implement arch-specific function scan_reloc for amd64.

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