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