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