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