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