Fixed support for DWARF4 .debug_frame section. DWARF4 .debug_frame
section will specify the address(pointer) size in the CIE.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3106 95820547-d848-0410-985e-9ae8fe0fa350
Fix build for ar(1) under FreeBSD: ar(1) needs to link with libz after
libarchive upgrade.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3107 95820547-d848-0410-985e-9ae8fe0fa350
Immediately add the default entries to ".shstrtab" during its
initialization, instead of wating until the first entry is inserted.
This fixes the segfault when strip(1) is trying to remove every
section from an object file. (add_to_shstrtab() is never called in
this case)

Submitted by:	Ed Maste
Ticket:	#463

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3108 95820547-d848-0410-985e-9ae8fe0fa350
Add test case for invoking strip(1) on empty.o.

Ticket:	#463

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3109 95820547-d848-0410-985e-9ae8fe0fa350
Add AArch64 machine type and relocations.

Submitted by:	Ed Maste
Ticket:	#461

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3110 95820547-d848-0410-985e-9ae8fe0fa350
Do not strip all when stripping an explict symbol using option -N.

Submitted by:	Ed Maste
Ticket:	#460

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3111 95820547-d848-0410-985e-9ae8fe0fa350
Calculate segment's memory size (p_memsz) using section's VMA, not
its file offset. Otherwise the padding inside the segment will not
be preserved sometimes. (for example padding before a SHT_NOBITS
section will not be reflected in its section layout)

Submitted by:	Ed Maste
Ticket:	#459

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3112 95820547-d848-0410-985e-9ae8fe0fa350
The fix for ticket #459 exposed another issue: when we sort sections
into segments we should also check if section's VMA falls in range
of segment's load address.

Test case "strip-all-10" contains a binary "make" compiled under
OpenBSD. In that object the ".bss" section has its own segment.  Two
empty sections ".gotpad0" and ".gotpad1" that have the same file
offset as the ".bss" section get mistakenly sorted into the ".bss"
section's segment if we do not compare their VMA.  (We didn't discover
this bug before, since the bug is hidden if file offsets are used to
calculate segment memory size)

Ticket:	#459

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3113 95820547-d848-0410-985e-9ae8fe0fa350
Minor fixes to the `dwarf_next_types_section.3` manual page.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3114 95820547-d848-0410-985e-9ae8fe0fa350
Minor fixes for the `dwarf_attroffset.3` manual page.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3115 95820547-d848-0410-985e-9ae8fe0fa350
For the `dwarf_next_types_section.3` manual page:
- Bump up the manual page date (for revision [r3114]).
- Fix a whitespace nit.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3116 95820547-d848-0410-985e-9ae8fe0fa350
Mention our extensions `dwarf_attroffset()` and `dwarf_next_types_section()`
in the `dwarf.3` overview manual page.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3117 95820547-d848-0410-985e-9ae8fe0fa350
Tweak -mdoc usage and improve a few sentences in the manual page
for `dwarf_get_die_infotypes_flag()`.

Cross reference this function from `dwarf.3`.

Ticket:  #450

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3118 95820547-d848-0410-985e-9ae8fe0fa350
Remove unnecessary NULL check.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3119 95820547-d848-0410-985e-9ae8fe0fa350
Do not include elftoolchain.os.mk too early, which will prevent
variable NOMAN from getting translated into NO_MAN under FreeBSD.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3120 95820547-d848-0410-985e-9ae8fe0fa350
Do not include elftoolchain.os.mk too early, which will prevent
variable NOMAN from getting translated into NO_MAN under FreeBSD.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3121 95820547-d848-0410-985e-9ae8fe0fa350
Fix build for libdwarf testsuite under FreeBSD: Moved NOMAN define
before the elftoolchain.os.mk include so it gets translated to NO_MAN.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3122 95820547-d848-0410-985e-9ae8fe0fa350
Fix build with clang: make variable cpp_demangle_gnu3_push_head static.

Ticket: #458

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3123 95820547-d848-0410-985e-9ae8fe0fa350
Fix build with clang: make variables static.

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3124 95820547-d848-0410-985e-9ae8fe0fa350
When handling ".o" object files, we should remove the SHT_GROUP
(section group) sections when the symbol table is going to be remove.
Section group signature is stored in the symbol table, so it's
meaningless to keep the section groups if there is no symbol table.

The behaviour should now be compatible with Binutils.

Ticekt:	#464

git-svn-id: svn://svn.code.sf.net/p/elftoolchain/code/trunk@3125 95820547-d848-0410-985e-9ae8fe0fa350