backends: add abi_cfi and set_initial_registers_tid callbacks for M68K
[platform/upstream/elfutils.git] / NEWS
1 Version 0.173
2
3 More fixes for crashes and hangs found by afl-fuzz. In particular various
4 functions now detect and break infinite loops caused by bad DIE tree cycles.
5
6 readelf: Will now lookup the size and signedness of constant value types
7          to display them correctly (and not just how they were encoded).
8
9 libdw: New function dwarf_next_lines to read CU-less .debug_line data.
10        dwarf_begin_elf now accepts ELF files containing just .debug_line
11        or .debug_frame sections (which can be read without needing a DIE
12        tree from the .debug_info section).
13        Removed dwarf_getscn_info, which was never implemented.
14
15 backends: Handle BPF simple relocations.
16           The RISCV backends now handles ABI specific CFI and knows about
17           RISCV register types and names.
18
19 Version 0.172
20
21 No functional changes compared to 0.171.
22
23 Various bug fixes in libdw and eu-readelf dealing with bad DWARF5 data.
24 Thanks to running the afl fuzzer on eu-readelf and various testcases.
25
26 eu-readelf -N is ~15% faster.
27
28 Version 0.171
29
30 DWARF5 and split dwarf, including GNU DebugFission, are supported now.
31 Data can be read from the new DWARF sections .debug_addr, .debug_line_str,
32 .debug_loclists, .debug_str_offsets and .debug_rnglists.  Plus the new
33 DWARF5 and GNU DebugFission encodings of the existing .debug sections.
34 Also in split DWARF .dwo (DWARF object) files.  This support is mostly
35 handled by existing functions (dwarf_getlocation*, dwarf_getsrclines,
36 dwarf_ranges, dwarf_form*, etc.) now returning the data from the new
37 sections and data formats.  But some new functions have been added
38 to more easily get information about skeleton and split compile units
39 (dwarf_get_units and dwarf_cu_info), handle new attribute data
40 (dwarf_getabbrevattr_data) and to keep references to Dwarf_Dies
41 that might come from different sections or files (dwarf_die_addr_die).
42
43 Not yet supported are .dwp (Dwarf Package) and .sup (Dwarf Supplementary)
44 files, the .debug_names index, the .debug_cu_index and .debug_tu_index
45 sections. Only a single .debug_info (and .debug_types) section are
46 currently handled.
47
48 readelf: Handle all new DWARF5 sections.
49          --debug-dump=info+ will show split unit DIEs when found.
50          --dwarf-skeleton can be used when inspecting a .dwo file.
51          Recognizes GNU locviews with --debug-dump=loc.
52
53 libdw: New functions dwarf_die_addr_die, dwarf_get_units,
54        dwarf_getabbrevattr_data and dwarf_cu_info.
55        libdw will now try to resolve the alt file on first use of
56        an alt attribute FORM when not set yet with dwarf_set_alt.
57        dwarf_aggregate_size() now works with multi-dimensional arrays.
58
59 libdwfl: Use process_vm_readv when available instead of ptrace.
60
61 backends: Add a RISC-V backend.
62
63 There were various improvements to build on Windows.
64 The sha1 and md5 implementations have been removed, they weren't used.
65
66 Version 0.170
67
68 libdw: Added new DWARF5 attribute, tag, character encoding, language code,
69        calling convention, defaulted member function and macro constants
70        to dwarf.h.
71        New functions dwarf_default_lower_bound and dwarf_line_file.
72        dwarf_peel_type now handles DWARF5 immutable, packed and shared tags.
73        dwarf_getmacros now handles DWARF5 .debug_macro sections.
74
75 strip: Add -R, --remove-section=SECTION and --keep-section=SECTION.
76
77 backends: The bpf disassembler is now always build on all platforms.
78
79 Version 0.169
80
81 backends: Add support for EM_PPC64 GNU_ATTRIBUTES.
82           Frame pointer unwinding fallback support for i386, x86_64, aarch64.
83
84 translations: Update Polish translation.
85
86 Version 0.168
87
88 http://elfutils.org/ is now hosted at http://sourceware.org/elfutils/
89
90 libelf: gelf_newehdr and gelf_newehdr now return void *.
91
92 libdw: dwarf.h corrected the DW_LANG_PLI constant name (was DW_LANG_PL1).
93
94 readelf: Add optional --symbols[=SECTION] argument to select section name.
95
96 Version 0.167
97
98 libasm: Add eBPF disassembler for EM_BPF files.
99
100 backends: Add m68k and BPF backends.
101
102 ld: Removed.
103
104 dwelf: Add ELF/DWARF string table creation functions. dwelf_strtab_init,
105        dwelf_strtab_add, dwelf_strtab_add_len, dwelf_strtab_finalize,
106        dwelf_strent_off, dwelf_strent_str and dwelf_strtab_free.
107
108 Version 0.166
109
110 config: The default program prefix for the installed tools is now eu-.
111         Use configure --program-prefix="" to not use a program prefix.
112
113 Version 0.165
114
115 elfcompress: New utility to compress or decompress ELF sections.
116
117 readelf: Add -z,--decompress option.
118
119 libelf: Add elf_compress, elf_compress_gnu, elf32_getchdr, elf64_getchdr
120         and gelf_getchdr.
121
122 libdwelf: New function dwelf_scn_gnu_compressed_size.
123
124 config: Add libelf and libdw pkg-config files.
125
126 backends: sparc support for core and live backtraces.
127
128 translations: Updated Polish translation.
129
130 Version 0.164
131
132 strip, unstrip: Handle ELF files with merged strtab/shstrtab tables.
133                 Handle missing SHF_INFO_LINK section flags.
134
135 libelf: Use int64_t for offsets in libelf.h instead of loff_t.
136
137 libdw: dwarf.h Add preliminary DWARF5 DW_LANG_Haskell.
138
139 libdwfl: dwfl_standard_find_debuginfo now searches any subdir of the binary
140          path under the debuginfo root when the separate debug file couldn't
141          be found by build-id.
142          dwfl_linux_proc_attach can now be called before any Dwfl_Modules
143          have been reported.
144
145 backends: Better sparc and sparc64 support.
146
147 translations: Updated Ukrainian translation.
148
149 Provide default-yama-scope subpackage.
150
151 Version 0.163
152
153 Bug fixes only, no new features.
154
155 Version 0.162
156
157 libdw: Install new header elfutils/known-dwarf.h.
158        dwarf.h Add preliminary DWARF5 constants DW_TAG_atomic_type,
159        DW_LANG_Fortran03, DW_LANG_Fortran08. dwarf_peel_type now also
160        handles DW_TAG_atomic_type.
161
162 addr2line: Input addresses are now always interpreted as hexadecimal
163            numbers, never as octal or decimal numbers.
164            New option -a, --addresses to print address before each entry.
165            New option -C, --demangle to show demangled symbols.
166            New option --pretty-print to print all information on one line.
167
168 ar: CVE-2014-9447 Directory traversal vulnerability in ar extraction.
169
170 backends: x32 support.
171
172 Version 0.161
173
174 libdw: New function dwarf_peel_type. dwarf_aggregate_size now uses
175        dwarf_peel_type to also provide the sizes of qualified types.
176        dwarf_getmacros will now serve either of .debug_macro and
177        .debug_macinfo transparently.  New interfaces
178        dwarf_getmacros_off, dwarf_macro_getsrcfiles,
179        dwarf_macro_getparamcnt, and dwarf_macro_param are available
180        for more generalized inspection of macros and their parameters.
181        dwarf.h: Add DW_AT_GNU_deleted, DW_AT_noreturn, DW_LANG_C11,
182        DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
183
184 Version 0.160
185
186 libdw: New functions dwarf_cu_getdwarf, dwarf_cu_die.
187        dwarf.h remove non-existing DW_TAG_mutable_type.
188
189 libdwfl: Handle LZMA .ko.xz compressed kernel modules.
190
191 unstrip: New option -F, --force to combining files even if some ELF headers
192          don't seem to match.
193
194 backends: Handle ARM THUMB functions. Add support for ppc64le ELFv2 abi.
195
196 Version 0.159
197
198 stack: New option -d, --debugname to lookup DWARF debuginfo name for frame.
199        New option -i, --inlines to show inlined frames using DWARF debuginfo.
200
201 libdwelf: New libdwelf.h header for libdw.so DWARF ELF Low-level Functions.
202           New function dwelf_elf_gnu_debuglink, dwelf_dwarf_gnu_debugaltlink,
203           and dwelf_elf_gnu_build_id.
204
205 libdw: Support for DWZ multifile forms DW_FORM_GNU_ref_alt and
206        DW_FORM_GNU_strp_alt is now enabled by default and no longer
207        experimental. Added new functions dwarf_getalt and dwarf_setalt
208        to get or set the alternative debug file used for the alt FORMs.
209        The dwfl_linux_proc_find_elf callback will now find ELF from
210        process memory for (deleted) files if the Dwfl has process state
211        attached.
212
213 libdwfl: The dwfl_build_id_find_debuginfo and dwfl_standard_find_debuginfo
214          functions will now try to resolve and set the alternative debug file.
215
216 backends: Add CFI unwinding for arm. Relies on .debug_frame.
217           Add arm process initial register state compatible mode to AARCH64.
218           Add aarch64 native and core unwind support.
219
220 other: All separate elfutils-robustify patches have been merged.
221        CVE-2014-0172 Check overflow before calling malloc to uncompress data.
222
223 Version 0.158
224
225 libdwfl: dwfl_core_file_report has new parameter executable.
226          New functions dwfl_module_getsymtab_first_global,
227          dwfl_module_getsym_info and dwfl_module_addrinfo.
228          Added unwinder with type Dwfl_Thread_Callbacks, opaque types
229          Dwfl_Thread and Dwfl_Frame and functions dwfl_attach_state,
230          dwfl_pid, dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
231          dwfl_thread_state_registers, dwfl_thread_state_register_pc,
232          dwfl_getthread_frames, dwfl_getthreads, dwfl_thread_getframes
233          and dwfl_frame_pc.
234
235 addr2line: New option -x to show the section an address was found in.
236
237 stack: New utility that uses the new unwinder for processes and cores.
238
239 backends: Unwinder support for i386, x86_64, s390, s390x, ppc and ppc64.
240           aarch64 support.
241
242 Version 0.157
243
244 libdw: Add new functions dwarf_getlocations, dwarf_getlocation_attr
245        and dwarf_getlocation_die.
246
247 readelf: Show contents of NT_SIGINFO and NT_FILE core notes.
248
249 addr2line: Support -i, --inlines output option.
250
251 backends: abi_cfi hook for arm, ppc and s390.
252
253 Version 0.156
254
255 lib: New macro COMPAT_VERSION_NEWPROTO.
256
257 libdw: Handle GNU extension opcodes in dwarf_getlocation.
258
259 libdwfl: Fix STB_GLOBAL over STB_WEAK preference in dwfl_module_addrsym.
260          Add minisymtab support.
261          Add parameter add_p_vaddr to dwfl_report_elf.
262          Use DT_DEBUG library search first.
263
264 libebl: Handle new core note types in EBL.
265
266 backends: Interpret NT_ARM_VFP.
267           Implement core file registers parsing for s390/s390x.
268
269 readelf: Add --elf-section input option to inspect an embedded ELF file.
270          Add -U, --unresolved-address-offsets output control.
271          Add --debug-dump=decodedline support.
272          Accept version 8 .gdb_index section format.
273          Adjust output formatting width.
274          When highpc is in constant form print it also as address.
275          Display raw .debug_aranges. Use libdw only for decodedaranges.
276
277 elflint: Add __bss_start__ to the list of allowed symbols.
278
279 tests: Add configure --enable-valgrind option to run all tests under valgrind.
280        Enable automake parallel-tests for make check.
281
282 translations: Updated Polish translation.
283
284 Updates for Automake 1.13.
285
286 Version 0.155
287
288 libelf: elf*_xlatetomd now works for cross-endian ELF note data.
289         elf_getshdr now works consistently on non-mmaped ELF files after
290         calling elf_cntl(ELF_C_FDREAD).
291         Implement support for ar archives with 64-bit symbol table.
292
293 libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was DW_LANG_Objc).
294        Any existing sources using the old name will have to be updated.
295        Add DW_MACRO_GNU .debug_macro type encodings constants, DW_ATE_UTF
296        and DW_OP_GNU_parameter_ref to dwarf.h.
297        Experimental support for DWZ multifile forms DW_FORM_GNU_ref_alt
298        and DW_FORM_GNU_strp_alt.  Disabled by default.  Use configure
299        --enable-dwz to test it.
300
301 readelf: Add .debug_macro parsing support.
302          Add .gdb_index version 7 parsing support.
303          Recognize DW_OP_GNU_parameter_ref.
304
305 backends: Add support for Tilera TILE-Gx processor.
306
307 translations: Updated Ukrainian translation.
308
309 Version 0.154
310
311 libelf: [g]elf[32|64]_offscn() do not match SHT_NOBITS sections at OFFSET.
312
313 libdw: dwarf_highpc function now handles DWARF 4 DW_AT_high_pc constant form.
314        Fix bug using dwarf_next_unit to iterate over .debug_types.
315
316 elflint: Now accepts gold linker produced executables.
317
318 The license is now GPLv2/LGPLv3+ for the libraries and GPLv3+ for stand-alone
319 programs. There is now also a formal CONTRIBUTING document describing how to
320 submit patches.
321
322 Version 0.153
323
324 libdw: Support reading .zdebug_* DWARF sections compressed via zlib.
325
326 libdwfl: Speed up dwfl_module_addrsym.
327
328 nm: Support C++ demangling.
329
330 ar: Support D modifier for "deterministic output" with no uid/gid/mtime info.
331     The U modifier is the inverse.
332     elfutils can be configured with the --enable-deterministic-archives
333     option to make the D behavior the default when U is not specified.
334
335 ranlib: Support -D and -U flags with same meaning.
336
337 readelf: Improve output of -wline. Add support for printing SDT elf notes.
338          Add printing of .gdb_index section.
339          Support for typed DWARF stack, call_site and entry_value.
340
341 strip: Add --reloc-debug-sections option.
342        Improved SHT_GROUP sections handling.
343
344 Version 0.152
345
346 Various build and warning nits fixed for newest GCC and Autoconf.
347
348 libdwfl: Yet another prelink-related fix for another regression.
349          Look for Linux kernel images in files named with compression suffixes.
350
351 elfcmp: New flag --ignore-build-id to ignore differing build ID bits.
352         New flag -l/--verbose to print all differences.
353
354 Version 0.151
355
356 libdwfl: Fix for more prelink cases with separate debug file.
357
358 strip: New flag --strip-sections to remove section headers entirely.
359
360 Version 0.150
361
362 libdw: Fix for handling huge .debug_aranges section.
363
364 libdwfl: Fix for handling prelinked DSO with separate debug file.
365
366 findtextrel: Fix diagnostics to work with usual section ordering.
367
368 libebl: i386 backend fix for multi-register integer return value location.
369
370 Version 0.149:
371
372 libdw: Decode new DW_OP_GNU_implicit_pointer operation;
373        new function dwarf_getlocation_implicit_pointer.
374
375 libdwfl: New function dwfl_dwarf_line.
376
377 addr2line: New flag -F/--flags to print more DWARF line information details.
378
379 strip: -g recognizes .gdb_index as a debugging section.
380
381 Version 0.148:
382
383 libdw: Accept DWARF 4 format: new functions dwarf_next_unit, dwarf_offdie_types.
384        New functions dwarf_lineisa, dwarf_linediscriminator, dwarf_lineop_index.
385
386 libdwfl: Fixes in core-file handling, support cores from PIEs.
387          When working from build IDs, don't open a named file that mismatches.
388
389 readelf: Handle DWARF 4 formats.
390
391 Version 0.147:
392
393 libdw: Fixes in CFI handling, best possible handling of bogus CFA ops.
394
395 libdwfl: Ignore R_*_NONE relocs, works around old (binutils) ld -r bugs.
396
397 Version 0.146:
398
399 libdwfl: New function dwfl_core_file_report.
400
401 Version 0.145:
402
403 Fix build with --disable-dependency-tracking.
404
405 Fix build with most recent glibc headers.
406
407 libelf: More robust to bogus section headers.
408
409 libdw: Fix CFI decoding.
410
411 libdwfl: Fix address bias returned by CFI accessors.
412          Fix core file module layout identification.
413
414 readelf: Fix CFI decoding.
415
416 Version 0.144:
417
418 libelf: New function elf_getphdrnum.
419         Now support using more than 65536 program headers in a file.
420
421 libdw: New function dwarf_aggregate_size for computing (constant) type
422        sizes, including array_type cases with nontrivial calculation.
423
424 readelf: Don't give errors for missing info under -a.
425          Handle Linux "VMCOREINFO" notes under -n.
426
427 Version 0.143:
428
429 libdw: Various convenience functions for individual attributes now use
430        dwarf_attr_integrate to look up indirect inherited attributes.
431        Location expression handling now supports DW_OP_implicit_value.
432
433 libdwfl: Support automatic decompression of files in XZ format,
434          and of Linux kernel images made with bzip2 or LZMA (as well as gzip).
435
436 Version 0.142:
437
438 libelf: Add elf_getshdrnum alias for elf_getshnum and elf_getshdrstrndx alias
439         for elf_getshstrndx and deprecate original names.  Sun screwed up
440         their implementation and asked for a solution.
441
442 libebl: Add support for STB_GNU_UNIQUE.
443
444 elflint: Add support for STB_GNU_UNIQUE.
445
446 readelf: Add -N option, speeds up DWARF printing without address->name lookups.
447
448 libdw: Add support for decoding DWARF CFI into location description form.
449        Handle some new DWARF 3 expression operations previously omitted.
450        Basic handling of some new encodings slated for DWARF 4.
451
452 Version 0.141:
453
454 libebl: sparc backend fixes;
455         some more arm backend support
456
457 libdwfl: fix dwfl_module_build_id for prelinked DSO case;
458          fixes in core file support;
459          dwfl_module_getsym interface improved for non-address symbols
460
461 strip: fix infinite loop on strange inputs with -f
462
463 addr2line: take -j/--section=NAME option for binutils compatibility
464            (same effect as '(NAME)0x123' syntax already supported)
465
466 Version 0.140:
467
468 libelf: Fix regression in creation of section header
469
470 libdwfl: Less strict behavior if DWARF reader ist just used to display data
471
472 Version 0.139:
473
474 libcpu: Add Intel SSE4 disassembler support
475
476 readelf: Implement call frame information and exception handling dumping.
477          Add -e option.  Enable it implicitly for -a.
478
479 elflint: Check PT_GNU_EH_FRAME program header entry.
480
481 libdwfl: Support automatic gzip/bzip2 decompression of ELF files.
482
483 Version 0.138:
484
485 Install <elfutils/version.h> header file for applications to use in source
486 version compatibility checks.
487
488 libebl: backend fixes for i386 TLS relocs; backend support for NT_386_IOPERM
489
490 libcpu: disassembler fixes
491
492 libdwfl: bug fixes
493
494 libelf: bug fixes
495
496 nm: bug fixes for handling corrupt input files
497
498 Version 0.137:
499
500 Minor fixes for unreleased 0.136 release.
501
502 Version 0.136:
503
504 libdwfl: bug fixes; new "segment" interfaces;
505          all the libdwfl-based tools now support --core=COREFILE option
506
507 Version 0.135:
508
509 libdwfl: bug fixes
510
511 strip: changed handling of ET_REL files wrt symbol tables and relocs
512
513 Version 0.134:
514
515 elflint: backend improvements for sparc, alpha
516
517 libdwfl, libelf: bug fixes
518
519 Version 0.133:
520
521 readelf, elflint, libebl: SHT_GNU_ATTRIBUTE section handling (readelf -A)
522
523 readelf: core note handling for NT_386_TLS, NT_PPC_SPE, Alpha NT_AUXV
524
525 libdwfl: bug fixes and optimization in relocation handling
526
527 elfcmp: bug fix for non-allocated section handling
528
529 ld: implement newer features of binutils linker.
530
531 Version 0.132:
532
533 libcpu: Implement x86 and x86-64 disassembler.
534 libasm: Add interface for disassembler.
535
536 all programs: add debugging of branch prediction.
537
538 libelf: new function elf_scnshndx.
539
540 Version 0.131:
541
542 libdw: DW_FORM_ref_addr support; dwarf_formref entry point now deprecated;
543        bug fixes for oddly-formatted DWARF
544
545 libdwfl: bug fixes in offline archive support, symbol table handling;
546          apply partial relocations for dwfl_module_address_section on ET_REL
547
548 libebl: powerpc backend support for Altivec registers
549
550 Version 0.130:
551
552 readelf: -p option can take an argument like -x for one section,
553          or no argument (as before) for all SHF_STRINGS sections;
554          new option --archive-index (or -c);
555          improved -n output for core files, on many machines
556
557 libelf: new function elf_getdata_rawchunk, replaces gelf_rawchunk;
558         new functions gelf_getnote, gelf_getauxv, gelf_update_auxv
559
560 readelf, elflint: handle SHT_NOTE sections without requiring phdrs
561
562 elflint: stricter checks on debug sections
563
564 libdwfl: new functions dwfl_build_id_find_elf, dwfl_build_id_find_debuginfo,
565          dwfl_module_build_id, dwfl_module_report_build_id;
566          support dynamic symbol tables found via phdrs;
567          dwfl_standard_find_debuginfo now uses build IDs when available
568
569 unstrip: new option --list (or -n)
570
571 libebl: backend improvements for sparc, alpha, powerpc
572
573 Version 0.129:
574
575 readelf: new options --hex-dump (or -x), --strings (or -p)
576
577 addr2line: new option --symbols (or -S)
578
579 Version 0.128:
580
581 new program: unstrip
582
583 elfcmp: new option --hash-inexact
584
585 Version 0.127:
586
587 libdw: new function dwarf_getsrcdirs
588
589 libdwfl: new functions dwfl_module_addrsym, dwfl_report_begin_add,
590          dwfl_module_address_section
591
592 Version 0.126:
593
594 new program: ar
595
596 Version 0.125:
597
598 elflint: Compare DT_GNU_HASH tests.
599
600 move archives into -static RPMs
601
602 libelf, elflint: better support for core file handling
603
604 Version 0.124:
605
606 libebl: sparc backend support for return value location
607
608 libebl, libdwfl: backend register name support extended with more info
609
610 libelf, libdw: bug fixes for unaligned accesses on machines that care
611
612 readelf, elflint: trivial bugs fixed
613
614 Version 0.123:
615
616 libebl: Backend build fixes, thanks to Stepan Kasal.
617
618 libebl: ia64 backend support for register names, return value location
619
620 libdwfl: Handle truncated linux kernel module section names.
621
622 libdwfl: Look for linux kernel "vmlinux" files with ".debug" suffix.
623
624 elflint: Fix checks to permit --hash-style=gnu format.
625
626 Version 0.122:
627
628 libebl: add function to test for relative relocation
629
630 elflint: fix and extend DT_RELCOUNT/DT_RELACOUNT checks
631
632 elflint, readelf: add support for DT_GNU_HASH
633 libelf: add elf_gnu_hash
634
635 elflint, readelf: add support for 64-bit SysV-style hash tables
636
637 libdwfl: new functions dwfl_module_getsymtab, dwfl_module_getsym.
638
639 Version 0.121:
640
641 libelf: bug fixes for rewriting existing files when using mmap.
642
643 make all installed headers usable in C++ code.
644
645 readelf: better output format.
646
647 elflint: fix tests of dynamic section content.
648
649 ld: Implement --as-needed, --execstack, PT_GNU_STACK.  Many small patches.
650
651 libdw, libdwfl: handle files without aranges info.
652
653 Version 0.120:
654
655 Bug fixes.
656
657 dwarf.h updated for DWARF 3.0 final specification.
658
659 libdwfl: New function dwfl_version.
660
661 The license is now GPL for most files.  The libelf, libebl, libdw,
662 and libdwfl libraries have additional exceptions.  Add reference to
663 OIN.
664
665 Version 0.119:
666
667 bug fixes
668
669 Version 0.118:
670
671 elflint: more tests.
672
673 libdwfl: New function dwfl_module_register_names.
674
675 libebl: New backend hook for register names.
676
677 Version 0.117:
678
679 libdwfl: New function dwfl_module_return_value_location.
680
681 libebl: Backend improvements for several CPUs.
682
683 Version 0.116:
684
685 libdw: New functions dwarf_ranges, dwarf_entrypc, dwarf_diecu,
686        dwarf_entry_breakpoints.  Removed Dwarf_Func type and functions
687        dwarf_func_name, dwarf_func_lowpc, dwarf_func_highpc,
688        dwarf_func_entrypc, dwarf_func_die; dwarf_getfuncs callback now uses
689        Dwarf_Die, and dwarf_func_file, dwarf_func_line, dwarf_func_col
690        replaced by dwarf_decl_file, dwarf_decl_line, dwarf_decl_column;
691        dwarf_func_inline, dwarf_func_inline_instances now take Dwarf_Die.
692        Type Dwarf_Loc renamed to Dwarf_Op; dwarf_getloclist,
693        dwarf_addrloclists renamed dwarf_getlocation, dwarf_getlocation_addr.
694
695 Version 0.115:
696
697 libelf: speed-ups of non-mmap reading.
698
699 strings: New program.
700
701 Implement --enable-gcov option for configure.
702
703 libdw: New function dwarf_getscopes_die.
704
705 Version 0.114:
706
707 libelf: new function elf_getaroff
708
709 libdw: Added dwarf_func_die, dwarf_func_inline, dwarf_func_inline_instances.
710
711 libdwfl: New functions dwfl_report_offline, dwfl_offline_section_address,
712          dwfl_linux_kernel_report_offline.
713
714 ranlib: new program
715
716 Version 0.113:
717
718 elflint: relax a bit. Allow version definitions for defined symbols against
719 DSO versions also for symbols in nobits sections.  Allow .rodata section
720 to have STRINGS and MERGE flag set.
721
722 strip: add some more compatibility with binutils.
723
724 Version 0.112:
725
726 elfcmp: some more relaxation.
727
728 elflint: many more tests, especially regarding to symbol versioning.
729
730 libelf: Add elfXX_offscn and gelf_offscn.
731
732 libasm: asm_begin interface changes.
733
734 libebl: Add three new interfaces to directly access machine, class, and
735 data encoding information.
736
737 objdump: New program.  Just the beginning.
738
739 Version 0.111:
740
741 libdw: now contains all of libdwfl.  The latter is not installed anymore.
742
743 elfcmp: little usability tweak, name and index of differing section is printed.
744
745 Version 0.110:
746
747 libelf: fix a number of problems with elf_update
748
749 elfcmp: fix a few bugs.  Compare gaps.
750
751 Fix a few PLT problems and mudflap build issues.
752
753 libebl: Don't expose Ebl structure definition in libebl.h.  It's now private.
754
755 Version 0.109:
756
757 libebl: Check for matching modules.
758
759 elflint: Check that copy relocations only happen for OBJECT or NOTYPE symbols.
760
761 elfcmp: New program.
762
763 libdwfl: New library.
764
765 Version 0.108:
766
767 strip: fix bug introduced in last change
768
769 libdw: records returned by dwarf_getsrclines are now sorted by address
770
771 Version 0.107:
772
773 readelf: improve DWARF output format
774
775 strip: support Linux kernel modules
776
777 Version 0.106:
778
779 libdw: Updated dwarf.h from DWARF3 spec
780 libdw: add new funtions dwarf_func_entrypc, dwarf_func_file, dwarf_func_line,
781 dwarf_func_col, dwarf_getsrc_file
782
783 Version 0.105:
784
785 addr2line: New program
786
787 libdw: add new functions: dwarf_addrdie, dwarf_macro_*, dwarf_getfuncs,
788 dwarf_func_*.
789
790 findtextrel: use dwarf_addrdie
791
792 Version 0.104:
793
794 findtextrel: New program.
795
796 Version 0.103:
797
798 libdw: Fix using libdw.h with gcc < 4 and C++ code.  Compiler bug.
799
800 Version 0.102:
801
802 More Makefile and spec file cleanups.
803
804 Version 0.101:
805
806 Remove most gettext autoconf handling.
807
808 Add more warnings
809
810 Fix resulting problems.  One actual bug found and fixed this way
811
812 Version 0.100:
813
814 libebl: Fix x86-64 relocations.
815
816 Add -Wunused -Wextra warnings.
817
818 Some cleanups resulting from those additional warnings.
819
820 Lots of Makefile cleanup.
821
822 Version 0.99:
823
824 libelf: add gelf_checksum prototype to <libelf.h>
825
826 libelf: fix elf*_checksum handling of NOBITS sections
827
828 Finish mudflap support.
829
830 Fix three bugs found by mudflap.
831
832 ld: add as_needed support
833
834 Version 0.98:
835
836 readelf: in section to segment mapping, indicate read-only sections.
837
838 elflint: more relaxation for GNU ld
839
840 Version 0.97:
841
842 Fix compiling with gcc 4.0.
843 Some tests called elflint without appropriate LD_LIBRARY_PATH.
844
845 Version 0.96:
846
847 Fix support for platforms with lib64.
848
849 Version 0.95:
850
851 libebl: add ppc and ppc64 support
852
853 readelf: fix minimal memory leak.
854
855 Add support to compile with mudflap.
856
857 Modernize configure.ac.  Move scripts in config subdir.
858
859 Modernize *-po directory infrastructure.
860
861 libelf: Add gelf_getlib and gelf_update_lib
862
863 readelf: print liblist sections
864
865 Version 0.94:
866
867 Fix some minimal build problems.
868
869 Version 0.93:
870
871 ibdw: tons of new functionality and bug fixes.  Several interface changes.
872
873 readelf: use libdw now.
874
875 libdwarf: removed completely.
876
877 Version 0.92:
878
879 configuration changes.
880
881 Version 0.91:
882
883 libdw: fix memory handling.  Implement source line handling.
884 nm: use libdw instead of libdwarf.
885 libelf: change to GPL from OSL1 for now.
886
887 Version 0.90:
888
889 libebl: Recognize a few more section types and dynamic tags and return
890 approriate strings.
891
892 Version 0.89:
893
894 strip: fix overwriting of symbol table in input file.
895
896 Version 0.88:
897
898 libebl: Add some ia64 bits.
899
900 Version 0.87:
901
902 Bug fixes for big endian and some 64-bit machines.
903
904 Version 0.86:
905
906 strip: fix handling of Alpha and s390x which use incorrect hash bucket sizes.
907
908 ld: tons of changes, moving towards usability.
909
910 Version 0.85:
911
912 strip: update section group symbol index if the associated symbol table changed
913
914 libelf: fix two problems with generating output not via mmap
915
916 elflint: add probably 10-15 more tests
917 libebl: add support for some of the new tests
918
919 ld: gazillion changes
920
921 Version 0.84:
922
923 elflint: deal with .rel.dyn section.  Fix a problem with rela platforms.
924 Handle PT_GNU_STACK.  Change to write messages to stdout.
925
926 readelf: fix a problem with version information in the symbol table output.
927
928 strip: update all version symbol table entries
929
930 Version 0.83:
931
932 size: fix a warning
933
934 strip: last changed caused problems when the symbol table is before the
935 relocation section.  Fixed.  This fix also improved the asymptotic
936 behavior if many symbol table sections are present.
937
938 Version 0.82:
939
940 Run strip tests with the correct libelf and libebl.
941
942 libelf: fix bug in verneed byte order changing code.
943
944 Version 0.81:
945
946 strip: Remove unused symbol table entries.  This might require updating
947 various other sections.
948
949 Version 0.80:
950
951 Fix some libelf problems with ET_REL files.
952
953 Version 0.79:
954
955 More warning changes, mainly by jbj.
956
957 libdw: yet more new code.  dwarf_child and dwarf_sibling should now actually
958 work.
959
960 Version 0.78:
961
962 libdw: 10+ new functions.  get-pubnames2 works now fully.  Almost all the
963 code needed for nm is in place.
964
965 Version 0.77:
966
967 cleanups to compile cleanly with gcc 3.3 and -Werror.
968
969 libdw: some new code.
970
971 Version 0.76:
972
973 libebl: Fix last patch to recognize relocation sections.   We must not
974 use the name.
975
976 Version 0.75:
977
978 libebl: .debug_ranges is a DWARF 3 debug section
979 libebl: recognize relocation sections for debug section
980 Patches by Jakub Jelinek.
981
982 Version 0.74:
983
984 Cleanups and more SPARC support by Tom Callaway <tcallaway@redhat.com>.
985
986 Version 0.73:
987
988 64-bit cleanups for the programs.
989
990 Version 0.72:
991
992 libelf: and yet more fun with endian tranformation at output time.
993
994 Version 0.71:
995
996 libelf: more fun with endian tranformation at output time.  Add test for it.
997
998 Version 0.70:
999
1000 libelf: Two little bugs left from previous patch to handle section output
1001 order.
1002
1003 libelf: add unlikely in some more places.
1004
1005 Version 0.69:
1006
1007 libelf: fix output routines to handle case where section indeces and
1008 ordre in the output file don't match correctly.  Patch by Jakub.
1009
1010 elflint: fix test of note section content for 64-bit platforms and files
1011 with different byte order.
1012
1013 Version 0.68:
1014
1015 libebl: Fix SH_ENTSIZE_HASH definition (patch by Jakub)
1016
1017 Version 0.67:
1018
1019 libelf: correct mistake in error string handling.
1020
1021 libelf: Implement ELF_F_PERMISSIVE.
1022 strip: Implement --permissive option.
1023
1024 Version 0.66:
1025
1026 strip: Implement -g option.
1027
1028 libelf: Handle broken hash table entry sizes.
1029
1030 libebl: New function ebl_debugscn_p.  Use it where appropriate.
1031
1032 Version 0.65:
1033
1034 libelf: Use correct file size for NOBITS section with ELF_F_LAYOUT set
1035
1036 Version 0.64:
1037
1038 libelf: Make error handling more robust.
1039 libelf: Use TLS in error handler if configured with --enable-tls
1040
1041 tests: input files are now distributed, not uuencoded in the shell scripts
1042
1043 libdw: implement error handling, dwarf_get_pubnames
1044
1045 Version 0.63:
1046
1047 Build (incomplete) libdw.
1048
1049 Version 0.62:
1050
1051 Get rid of libtool.
1052
1053 Version 0.61:
1054
1055 Fix URL of OSL.
1056
1057 Version 0.60:
1058
1059 libebl: Handle .gnu.warning.* sections correctly.
1060
1061 size: Implement -t option.
1062
1063 libebl: Add IA-64 support.
1064 libebl: Update SH relocations.
1065 libebl: Add Alpha support.
1066 libebl: Add Arm support.
1067 libebl: Add support for all currently known architecture to the loader.
1068
1069 Version 0.59:
1070
1071 nm: Implement -S option.  Correct portable output format.  Implement -s option.
1072
1073 libelf: Take offset of archive into account in elf_rand.
1074
1075 Version 0.58:
1076
1077 strip: fix handling of ET_REL files.
1078 Add tests for strip.
1079
1080 Version 0.57:
1081
1082 strip: respect layout of input file
1083
1084 Version 0.56:
1085
1086 strip: handle files with large number of sections.
1087
1088 Version 0.55:
1089
1090 libelf: quite a few bug fixes by Alex Larsson.
1091
1092 strip: implement -f option to place stripped sections into a separate
1093 file.  By Alex Larsson.
1094
1095 Version 0.54:
1096
1097 strip: don't let STT_SECTION symbols keeps sections from being removed
1098
1099 elflint: local symbols are allowed in .dynsym
1100 elflint: special case .rel.dyn a bit
1101
1102 Version 0.53:
1103
1104 elflint: check types and flags of special sections defined in gABI
1105
1106 libebl: add x86-64 support
1107
1108 Version 0.52:
1109
1110 Start improvement of debug info handling in nm.
1111
1112 libasm: implement asm_adduleb128 and asm_addsleb128 and a test for them
1113
1114 Version 0.51:
1115
1116 Fix build on 64-bit platforms.
1117
1118 Version 0.50:
1119
1120 nm: print file/line number also for local symbols
1121
1122 use versions scripts not libtool's useless -export-symbols option
1123
1124 Version 0.49:
1125
1126 Update to autoconf 2.54 and automake 1.7.
1127
1128 elflint: check note sections
1129
1130 libdwarf: a number of bug fixes
1131
1132 readelf: print .debug_info section content
1133
1134 dwarf.h: Update from draft 7
1135
1136 Version 0.48:
1137
1138 libcpu: beginning
1139
1140 libelf: new function to read parts of the ELF file
1141
1142 libebl: support for note section handling
1143
1144 readelf: dump note sections
1145
1146 Version 0.47:
1147
1148 libelf: fix little new section-handling related bugs in elf_getshstrndx
1149 and elf_nextscn
1150
1151 elflint: tests for mandatory content of dynamic section
1152
1153 libasm: better handling of absolute symbols
1154
1155 Version 0.46:
1156
1157 libasm: rewrite to store Elf_Scn* instead of indices
1158
1159 nm: finish many-section support
1160
1161 nm: use debug in to print file/line info in sysv format
1162
1163 libdwarf: fix a few bugs in DIE handling
1164
1165 Version 0.45:
1166
1167 libelf: major rewrite to keep Elf_Scn references valid until elf_end
1168
1169 Version 0.44:
1170
1171 libasm: Add support for bss, ABS, and COM sections.
1172
1173 libebl: ebl_section_name takes now two index arguments to distinguish
1174 between special sections and extended sections
1175
1176 Version 0.43:
1177
1178 General: fix a few problem gcc 3.1 had with the code.
1179
1180 libelf: implement {gelf,elf32,elf64}_checksum
1181
1182 libelf: optimze DSO: fewer relocations, fewer PLTs
1183
1184 add msg_tst test
1185
1186 ld: use correct section header string table index; write correct index
1187
1188 add dependencies for *.sym files
1189
1190 Version 0.42:
1191
1192 libelf: add elf_getshnum and elf_getshstrndx
1193
1194 libebl: update section type name function
1195
1196 elflint: tons of fixes wrt large number of sections.  New tests in this area.
1197 Same amount of other bug fixes.
1198
1199 size, strip, nm: better support for large number of sections.  Including
1200 using correct section header string table
1201
1202 libasm: correctly create data structures for large number of sections
1203
1204 new tests asm-tst4 and asm-tst5 to check large number of sections
1205
1206 libasm: implement section group generation
1207
1208 elflint: more tests on section groups.  Improve performance on existing
1209 section group tests
1210
1211 Version 0.41:
1212
1213 ld: add undefined symbols to dynamic symbol table if --export-dynamic is
1214 not given
1215
1216 ld: fix value of e_entry
1217
1218 Version 0.40:
1219
1220 elflint: print section names in error messages
1221
1222 elflint: mustn't warn about multiple DT_NULL
1223
1224 ld: don't emit all symbols if --export-dynamic is not given
1225
1226 ld: correct compute symbol address in output file (section index was off by 1)
1227
1228 ld: generate correct version info in dynsym without --export-dynamic and
1229 in symtab
1230
1231 Version 0.39:
1232
1233 Fix check of various e_*size entries in elflint.
1234
1235 Handle text output in asm_newsym.
1236
1237 Finish checks in asm-tst3.
1238
1239 Version 0.38:
1240
1241 Update to autoconf 2.53, automake 1.6, gettext 0.11+.
1242
1243 Introduce *.sym files to restrict export from DSOs.
1244
1245 Use attribute_hidden and internal_function to optimize DSO code.
1246
1247 Add TLS definitions in elf.h and handle them in readelf.
1248
1249 Fix bug in verdef section generation in ld.
1250
1251 Add initial libasm code.
1252
1253 Version 0.37:
1254
1255 Implement better hash size optimization heuristic in ld.  It uses a formula
1256 taking number of tests into account.
1257
1258 Lots of small bug fixes.
1259
1260 Improve readelf output format.  Respect various sh_link/sh_info values.
1261 Correctly print versioning information for symbol tables.
1262
1263 Version 0.36:
1264
1265 Implement preprocessing of linker script.  Recognize -z combreloc.
1266
1267 Version 0.35:
1268
1269 Implement -z ignore|record for ld.
1270
1271 Implement creating of .gnu.version_r and .gnu.version sections.  The
1272 .gnu.version does not yet contain correct info for defined and versioned
1273 symbols (means .gnu.version_d is not yet implemented).
1274
1275 Implement gelf_update_* functions to create versioning data.
1276
1277 Version 0.34:
1278
1279 Add DT_RUNPATH/DT_RPATH entries to dynamic section.  Create .plt and
1280 .rel.plt sections (completely).  Add support for all four PLT related
1281 dynamic section entries.  Add callback function for PLT creation.
1282
1283 More tests in elflint.  Add support for very strict checking which for
1284 now flags level 2 (deprecated features) usage.
1285
1286 Version 0.33:
1287
1288 Create dynamic symbol table, dynamic string table, and hash table to ld.
1289
1290 Add hash table histogram support to readelf.
1291
1292 Version 0.32:
1293
1294 more work on elflint
1295
1296 ld now creates the dynamic section and references it.  Start adding entries
1297 to dynamic section.
1298
1299 Version 0.31:
1300
1301 Start implementing elflint.
1302
1303 Version 0.30:
1304
1305 Fix handling of NOBITS sections in elf_getdata.
1306
1307 Start implementing generation of executables and DSOs in ld.
1308 Generation of program header mostly done.  Address computation done.
1309 Extension of linker script syntax.
1310
1311 Various cleanups.
1312
1313 Implement section group handling in readelf.
1314
1315 Version 0.29:
1316
1317 Implement section groups.  This involved a lot of code moving.  The
1318 new code is entirely untested since gas/gcc are currently not able to
1319 create section groups.  ld works fine on files without section groups.
1320
1321 Version 0.28:
1322
1323 Fix problem with adding more section in elf_newscn.  The section pointers
1324 for the data buffers wasn't adjusted.
1325
1326 Fix elf_getdata with nonzero second parameter.  Correctly handle creation
1327 of internal data buffer for machines without unaligned access.
1328
1329 Version 0.27:
1330
1331 Start adding support to selectively add sections.  Includes support for
1332 section groups.
1333 Add --gc-sections/--no-gc-sections options.
1334 Add general section merging support.
1335
1336 Fix a bug in section group support in strip.
1337
1338 Fix some potential problems with hash value in dynamic hash implementation.
1339
1340 Version 0.26:
1341
1342 section merging works in ld.
1343
1344 Version 0.25:
1345
1346 Actually create data structures from version map file and use it to hide
1347 symbols in ld.
1348
1349 Implement -s -s for ld.
1350
1351 Version 0.24:
1352
1353 Improve relocation table output in readelf.  Avoid some crashes.
1354 Finish many section handling in readelf.
1355
1356 Finish: finish implementation of ld -r.  At least some simple tests pass.
1357
1358 Version 0.23:
1359
1360 Fix a number of errors in ELF_C_WRITE handling.
1361
1362 Almost finished implementation of ld -r.  The data sections are all copied.
1363 Handling of symbol tables is missing.
1364
1365 Version 0.22:
1366
1367 Handle DSO and archive input files correctly if -r option is given.
1368
1369 Gracefully deal with no phdr in new file in libelf.
1370 Fix various small error handling problems.
1371 Don't mmap file for output unless the command says so.
1372
1373 Add code to create ELF section header table to ld finalize routines.
1374
1375 Version 0.21:
1376
1377 Fix some problems with recursive handling of archives in libelf.
1378
1379 Improve messages printed by nm.
1380
1381 Add symbol binding name handling to libebl.  Fix section name handling in
1382 libebl.
1383
1384 readelf and nm use more libebl functions.
1385
1386 Handle XINDEX correctly in nm and string.
1387
1388 Add first machine ld backend library (i386).
1389 Use it.  Recognize -r and --shared.  Avoid using -lxxx parameters for -r.
1390 Create ELF header in output file.  Change mode of output file according to
1391 output file type.  Reorganize callback initialization in ld.
1392
1393 Version 0.20:
1394
1395 Fix some memory leaks in libelf.
1396
1397 Version 0.19:
1398
1399 Implement reading version script.  Both inside linker scripts and via the
1400 --version-script command line parameter.  Uses the same code.
1401 What remains to be done is to implement a data structure which allows
1402 efficient matching against the version names to decide which pattern
1403 matches.
1404
1405 Beginning of output generation and output writing functions.
1406
1407 Version 0.18:
1408
1409 Finish implementation for DSO input file handling.  Implement rpath, runpath,
1410 and LD_LIBRARY_PATH handling.
1411
1412 Version 0.17:
1413
1414 make handling of e_shnum overflow in libelf standard conforming
1415
1416 ld now actually can handle DSOs in linker scripts.  Handling of DT_RUNPATH,
1417 DT_RPATH, -rpath, -rpath-link still remains to be implemented.
1418
1419 fix handling of -L parameters.  Make actual use of the default_paths element.
1420
1421 make re-definition of symbols in and from DSO compatible with existing linker
1422
1423 Version 0.16:
1424
1425 more work on assigning input sections to output sections.
1426
1427 Add gelf_xlatetof and gelf_xlatetom which were accidently left out.
1428
1429 Fix memory handling of section headers.
1430
1431 Version 0.15:
1432
1433 Add many-section support to ld.  Add various new command line parameters.
1434 Allow pagesize to be specified in linker script or on the command line.
1435 Collect input sections in list for the output section according to the rules
1436 specified in the linker script.
1437
1438 Version 0.14:
1439
1440 Fix some problems in the internal list handling which had the result
1441 that we didn't look for some of the unresolved symbols.
1442
1443 Free some memory if we know we don't need it anymore.
1444
1445 Optimize the list of unresolved symbols.  Throw out symbols which are
1446 meanwhile resolved.
1447
1448 Version 0.13:
1449
1450 Got file reading correct now.  The files are all read while parsing
1451 the parameters.  No creating of data structures to describe the linker
1452 command line.  The symbol table is built up while reading the files.
1453 DSOs are handled now.  -( -) handling is optimized.
1454
1455 Version 0.12:
1456
1457 Linker read linker scripts everywhere.  Handles --whole-archive.  Recognizes
1458 --dynamic and --static.  Collects defined and undefined symbols.  Recognizes
1459 conflicts.
1460
1461 libebl now defines functions to call the callbacks.  Add generic name handling
1462 in these new functions.  Remove the code from readelf and call the new
1463 functions.
1464
1465 Version 0.11:
1466
1467 Start of linker.  Basic argument parsing, finding of input files,
1468 linker script reading.
1469
1470 Version 0.10:
1471
1472 Implement dwarf_get_fde_n(), dwarf_get_abbrev(), dwarf_get_abbrev_tag(),
1473 dwarf_get_abbrev_code(), dwarf_get_abbrev_children_flag(),
1474 dwarf_get_abbrev_entry(), dwarf_get_fde_at_pc(), and tests for it.
1475
1476 Version 0.9:
1477
1478 Implement dwarf_get_fde_list_eh(), dwarf_get_cie_of_fde(),
1479 dwarf_get_fde_range(), dwarf_get_cie_info(), dwarf_get_fde_instr_bytes(),
1480 and tests for them.
1481
1482 Version 0.8:
1483
1484 Make handling of binaries in other byte order work and add tests for it.
1485
1486 Version 0.7:
1487
1488 Implement dwarf_get_aranges(), dwarf_get_arange(), dwarf_get_cu_die_offset(),
1489 dwarf_get_arange_info(), and tests for them.
1490
1491 Version 0.6:
1492
1493 Implement dwarf_get_global(), dwarf_globname(), dwarf_global_die_offset(),
1494 dwarf_global_cu_offset(), dwarf_global_name_offsets(), and tests for them
1495
1496 Version 0.5:
1497
1498 Implemented dwarf_srclines(), dwarf_srcfiles(), dwarf_linebeginstatement(),
1499 dwarf_lineendsequence(), dwarf_lineno(), dwarf_lineaddr(), dwarf_lineoff(),
1500 dwarf_linesrc(), dwarf_lineblock(), dwarf_lineprologueend(),
1501 dwarf_lineepiloguebegin(), and tests for them.
1502
1503 Version 0.4:
1504
1505 Implemented dwarf_loclist().
1506
1507 Version 0.3:
1508
1509 Implemented dwarf_dieoffset(), dwarf_die_CU_offset(), dwarf_diename() and
1510 tests.
1511
1512 Implemented dwarf_attrlist(), dwarf_hasattr(), dwarf_attr(), dwarf_lowpc(),
1513 dwarf_highpc(), dwarf_bytesize(), dwarf_bitsize(), dwarf_bitoffset(),
1514 dwarf_srclang(), dwarf_arrayorder(), dwarf_hasform(), dwarf_whatform(),
1515 dwarf_whatattr(), dwarf_formref(), dwarf_global_formref(), dwarf_formaddr(),
1516 dwarf_formflag(), dwarf_formudata(), dwarf_formsdata(), dwarf_formblock,
1517 dwarf_formstring() and tests for them.
1518
1519 Version 0.2:
1520
1521 Implemented dwarf_offdie()), dwarf_tag(), dwarf_dieoffset(),
1522 dwarf_die_CU_offset(), dwarf_diename() and tests for them.
1523
1524 Version 0.1:
1525
1526 First libdwarf functions work.
1527
1528 Version 0.0:
1529
1530 libelf and parts of libebl are done.