Add STAILQ_SORT macro which sorts a singly-linked tail queue. The code
is adapted from Simon Tatham's O(n*log(n)) mergesort algorithm.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2922 95820547-d848-0410-985e-9ae8fe0fa350
Sort dynamic relocations to make the runtime linker run faster.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2923 95820547-d848-0410-985e-9ae8fe0fa350
Introduce a path type and add support for different types of paths.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2924 95820547-d848-0410-985e-9ae8fe0fa350
Add support for "-rpath" and "-rpath-link" options.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2925 95820547-d848-0410-985e-9ae8fe0fa350
Emit DT_RPATH entry when the "-rpath" command line option is
specified.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2926 95820547-d848-0410-985e-9ae8fe0fa350
Set the type of the ".dynamic" output section to SHT_DYNAMIC.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2927 95820547-d848-0410-985e-9ae8fe0fa350
When the linker eliminates duplicate CIE entries, besides adjusting
the relocation offsets for the subsequent FDE entries, the relocation
entries for the duplicate CIE entries should also be removed.  (For
example, g++ emits CIE relocation for the personality routine handler
__gxx_personality_v0 defined by libstdc++)

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2928 95820547-d848-0410-985e-9ae8fe0fa350
Factor out file searching code to a utility function.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2929 95820547-d848-0410-985e-9ae8fe0fa350
Load symbols from shared libraries referenced by the DT_NEEDED entries
found in previously loaded shared libraries.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2930 95820547-d848-0410-985e-9ae8fe0fa350
Allow libelf to build with GCC 4.8.

Submitted by:	mr-kaworu
Ticket:		#415

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2931 95820547-d848-0410-985e-9ae8fe0fa350
Bug fix `libelf`: reject attempts to open zero-length files in `ELF_C_READ`
and `ELF_C_RDWR` mode.

Ticket:		#416
Reported by:	jtytgat

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2932 95820547-d848-0410-985e-9ae8fe0fa350
In the `libelf` test suite: add tests for the behavior of `elf_begin()`
with zero byte files.

Ticket:		#416

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2933 95820547-d848-0410-985e-9ae8fe0fa350
Unbreak the build of the `isa` utility.


git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2934 95820547-d848-0410-985e-9ae8fe0fa350
 * Expose ARM relocation symbols to the rest of the sources.
 * Correct a few ARM relocation definitions.

Ticket:		#417
Submitted by:	jtytgat

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2935 95820547-d848-0410-985e-9ae8fe0fa350
Update the list of ARM relocations, based on the ABI document version
"ARM IHI 0044E", released on 30th November 2012.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2936 95820547-d848-0410-985e-9ae8fe0fa350
In `libdwarf`:
 * Keep manual page entries sorted.
 * Include `dwarf.3` in the list of manual pages to be installed.

Submitted by:	jtytgat
Ticket:		#325, #419

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2937 95820547-d848-0410-985e-9ae8fe0fa350
Use the correct function name in the manual page for
`dwarf_add_die_to_debug()`.

Reported by:	jtytgat
Ticket:		#421

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2938 95820547-d848-0410-985e-9ae8fe0fa350
Define the symbols `EF_ARM_EABI_VER1`..`EF_ARM_EABI_VER5` and
`EF_ARM_EABI_UNKNOWN`.

Submitted by:	jtytgat
Ticket:		#422

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2939 95820547-d848-0410-985e-9ae8fe0fa350
Add support for SHT_GROUP (section group) sections. SHT_GROUP sections
are treated especially and should not appear in the output executable
or shared library.

git-svn-id: https://elftoolchain.svn.sourceforge.net/svnroot/elftoolchain/trunk@2940 95820547-d848-0410-985e-9ae8fe0fa350
Add support for DW_ISA_ARM in the libdwarf producer.

Submitted by:	jtytgat
Ticket:	  	#425

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