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