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