]>
sourceware.org Git - dwz.git/log
Jakub Jelinek [Fri, 29 Jun 2012 18:30:12 +0000 (20:30 +0200)]
Handle .gdb_index version 7.
Jakub Jelinek [Fri, 22 Jun 2012 07:08:27 +0000 (09:08 +0200)]
In low-mem mode, don't count all DIEs twice for checking
the -L limit.
Jakub Jelinek [Fri, 15 Jun 2012 06:57:31 +0000 (08:57 +0200)]
Silence __wur warning with -D_FORTIFY_SOURCE about fchown result unused.
Jakub Jelinek [Fri, 15 Jun 2012 06:54:22 +0000 (08:54 +0200)]
Terminate struct option array for getopt_long to avoid crashes
on unsupported long options.
Jakub Jelinek [Fri, 15 Jun 2012 06:53:27 +0000 (08:53 +0200)]
Man page fixes.
Jakub Jelinek [Fri, 15 Jun 2012 06:44:14 +0000 (08:44 +0200)]
Fix up FSF addresses, add COPYING3 and COPYING.RUNTIME.
Jakub Jelinek [Mon, 11 Jun 2012 13:08:42 +0000 (15:08 +0200)]
Resync dwarf2.{def,h} from gcc's include/, remove local defines
that are no longer needed.
Jakub Jelinek [Mon, 11 Jun 2012 13:00:41 +0000 (15:00 +0200)]
Jakub Jelinek [Mon, 11 Jun 2012 12:59:14 +0000 (14:59 +0200)]
Revert "During partition_dups, force together with anything that is worthwhile"
This reverts commit
847054dfb609c87aab78e2ad78e7a4e157350e78 .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:12 +0000 (14:59 +0200)]
Revert "Fix up handling of DW_FORM_ref_addr in write_die."
This reverts commit
40d02b37f4e84b45270fb88c470762ce7d61226e .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:10 +0000 (14:59 +0200)]
Revert "Use ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is"
This reverts commit
667cc323edc9a4bbea29d6e8fbbdb698c548e56a .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:08 +0000 (14:59 +0200)]
Revert "During partition_dups process all dups at once, looking for references"
This reverts commit
31ea135caf38441176eed1d184bd17a97fccb8da .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:06 +0000 (14:59 +0200)]
Revert "Fix test whether attributes extend beyond end of CU."
This reverts commit
9bc2ccf1c0428bb10cfecf8e973578e7fed18816 .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:04 +0000 (14:59 +0200)]
Revert "Backport rth's"
This reverts commit
159065b1e5c430d77e14b76212304593bbd0eb65 .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:03 +0000 (14:59 +0200)]
Revert "Always perform parent check in die_eq_1 for toplevel dies,"
This reverts commit
0305f797108bf9def3183406575ac59d98d112bb .
Jakub Jelinek [Mon, 11 Jun 2012 12:59:01 +0000 (14:59 +0200)]
Revert "Also compare arr[k]->die_cu now that all dups are processed at once"
This reverts commit
8c3319117288889d9c3a448aff21d072ef14d0cb .
Jakub Jelinek [Mon, 11 Jun 2012 12:58:59 +0000 (14:58 +0200)]
Revert "During partition_dups_1 second_phase only include non-referenced"
This reverts commit
97de8e54ce53c6e811b1c5b15791334a2d57a4ea .
Jakub Jelinek [Mon, 11 Jun 2012 12:58:57 +0000 (14:58 +0200)]
Revert "Handle even dups (arguably producer bugs) even within a single CU."
This reverts commit
a0c3fc0c4827eef8cb3a6283cf1fadbe5da87923 .
Jakub Jelinek [Mon, 11 Jun 2012 12:58:55 +0000 (14:58 +0200)]
Revert "Fix size computation for DW_FORM_string DW_AT_comp_dir attribute on PUs."
This reverts commit
a0328df48f0906e3e42454c90d8c4348d4689988 .
Jakub Jelinek [Mon, 11 Jun 2012 12:58:49 +0000 (14:58 +0200)]
Revert "Compile with -D_FILE_OFFSET_BITS=64."
This reverts commit
7d581b364cc095ac889bb423f13bf7e492337106 .
Jakub Jelinek [Fri, 8 Jun 2012 12:47:05 +0000 (14:47 +0200)]
Further small man page changes.
Jakub Jelinek [Fri, 8 Jun 2012 12:14:00 +0000 (14:14 +0200)]
Add license file.
Jakub Jelinek [Fri, 8 Jun 2012 12:09:57 +0000 (14:09 +0200)]
Small tweaks.
Jakub Jelinek [Fri, 8 Jun 2012 12:00:47 +0000 (14:00 +0200)]
Add man page, add make install rules.
Jakub Jelinek [Fri, 8 Jun 2012 11:36:45 +0000 (13:36 +0200)]
Accept -? as alternative to --help.
Jakub Jelinek [Fri, 8 Jun 2012 10:13:56 +0000 (12:13 +0200)]
In checksum_die and checksum_ref_die handle DW_FORM_ref_addr in fi_multifile
phase the same as in rd_multifile.
Jakub Jelinek [Thu, 7 Jun 2012 07:54:48 +0000 (09:54 +0200)]
Fix up adjusting .gdb_index CU vectors if they have more than one
CU in it.
Jakub Jelinek [Wed, 6 Jun 2012 10:04:35 +0000 (12:04 +0200)]
Support updating of .gdb_index even for -m, create .gdb_index in the
common file with just the PU list.
Jakub Jelinek [Wed, 6 Jun 2012 06:45:37 +0000 (08:45 +0200)]
Use enums instead of defines in a few places.
Jakub Jelinek [Wed, 6 Jun 2012 06:36:24 +0000 (08:36 +0200)]
Remove .debug_pubnames and/or .debug_pubtypes section, instead of
aborting compression when they are seen.
Jakub Jelinek [Tue, 5 Jun 2012 15:15:41 +0000 (17:15 +0200)]
Add lots of comments.
Replace struct dw_cu * with a new dw_cu_ref typedef.
Jakub Jelinek [Tue, 5 Jun 2012 09:51:07 +0000 (11:51 +0200)]
Switch to gcc's dwarf{2.def,2.h,names.c} triplet from older dwarf2.h.
Use get_DW_*_name to print form/attribute/op names where possible.
Jakub Jelinek [Mon, 4 Jun 2012 14:04:48 +0000 (16:04 +0200)]
Add -M and -r options.
Jakub Jelinek [Fri, 1 Jun 2012 09:13:15 +0000 (11:13 +0200)]
Handle properly with -m the case when all of .debug_str is moved into the
alternate file.
Jakub Jelinek [Thu, 31 May 2012 17:32:53 +0000 (19:32 +0200)]
Fix up .gdb_index rewriting if .debug_types section is not present.
Jakub Jelinek [Wed, 30 May 2012 17:16:42 +0000 (19:16 +0200)]
Fix up TU signature store for big-endian.
Jakub Jelinek [Wed, 30 May 2012 16:56:45 +0000 (18:56 +0200)]
Fix up .gdb_index adjusting if .debug_types section is present.
Jakub Jelinek [Tue, 29 May 2012 17:00:58 +0000 (19:00 +0200)]
Implement special low_mem mode, which roughly halves amount of
needed RAM at the expense of small slowdown on very large
inputs (more than -l COUNT DIEs). Give up if input has more than
-L COUNT DIEs.
Jakub Jelinek [Thu, 24 May 2012 16:45:32 +0000 (18:45 +0200)]
Handle ref->die_collapsed_child in mark_refs.
Jakub Jelinek [Thu, 24 May 2012 10:23:54 +0000 (12:23 +0200)]
Handle the case where multi_line_off and/or multi_str_off is 0
at the start of optimize_multifile.
Jakub Jelinek [Wed, 23 May 2012 17:48:28 +0000 (19:48 +0200)]
Free resa array.
Jakub Jelinek [Wed, 23 May 2012 17:46:39 +0000 (19:46 +0200)]
Add -h option to handle hardlinks properly. Don't process files with
-m again in the second pass if they failed in the first pass.
Jakub Jelinek [Wed, 23 May 2012 17:44:50 +0000 (19:44 +0200)]
Wire -q also in getopt_long argument.
Jakub Jelinek [Wed, 23 May 2012 16:17:43 +0000 (18:17 +0200)]
Compile with -D_FILE_OFFSET_BITS=64.
Jakub Jelinek [Wed, 23 May 2012 16:17:43 +0000 (18:17 +0200)]
Compile with -D_FILE_OFFSET_BITS=64.
Jakub Jelinek [Wed, 23 May 2012 15:35:55 +0000 (17:35 +0200)]
Add -q option to make it more quiet.
Jakub Jelinek [Wed, 23 May 2012 10:35:47 +0000 (12:35 +0200)]
Save some more memory by removing die_cu fields from struct dw_die.
Instead, the compile_unit/partial_unit die is tagged with die_root
bit, and die_parent is then a struct dw_cu pointer rather than
die pointer (before it was NULL). To find a cu for any die
a new die_cu inline has been added.
Jakub Jelinek [Wed, 23 May 2012 10:29:50 +0000 (12:29 +0200)]
Use origin instead of die->die_nextdup in DW_TAG_imported_unit handling.
Jakub Jelinek [Tue, 22 May 2012 16:16:25 +0000 (18:16 +0200)]
Don't segfault if fi_multifile create_import_tree doesn't find
anything worthwhile from alternate DIE set.
Jakub Jelinek [Tue, 22 May 2012 14:27:36 +0000 (16:27 +0200)]
Fix size computation for DW_FORM_string DW_AT_comp_dir attribute on PUs.
Jakub Jelinek [Tue, 22 May 2012 14:26:38 +0000 (16:26 +0200)]
Fix size computation for DW_FORM_string DW_AT_comp_dir attribute on PUs.
Jakub Jelinek [Tue, 22 May 2012 12:35:52 +0000 (14:35 +0200)]
Fix error handling during {rd,fi}_multifile.
Jakub Jelinek [Tue, 22 May 2012 10:18:02 +0000 (12:18 +0200)]
Replace referenced children during collapsing with 16 (resp. 12) bytes
long die_collapsed_child to further save memory during optimize_multifile.
Jakub Jelinek [Fri, 18 May 2012 19:15:04 +0000 (21:15 +0200)]
Save memory during optimize_multifile by collapsing non-referenced
children of toplevel dies and expanding them again if needed
for die_eq_1 (anything that gets expanded will be kept expanded
afterwards).
Jakub Jelinek [Fri, 18 May 2012 10:41:25 +0000 (12:41 +0200)]
Assume that in GCC created .debug_types abbrev offsets only increase
(or are the same as in last section).
Jakub Jelinek [Fri, 18 May 2012 10:38:33 +0000 (12:38 +0200)]
Add a hashtable for abbrev offsets to decrease amount of abbrev_tag
alloced memory and decrease number of read_abbrev calls if
abbrev offsets in CUs don't increase monotonically (common for
dwz adjusted/created CUs).
Jakub Jelinek [Fri, 18 May 2012 07:47:39 +0000 (09:47 +0200)]
During multifile_optimize, remove from off_htab all DIEs that are
never referenced using DW_FORM_* attributes.
Jakub Jelinek [Thu, 17 May 2012 14:56:16 +0000 (16:56 +0200)]
Handle even dups (arguably producer bugs) even within a single CU.
Jakub Jelinek [Thu, 17 May 2012 14:49:27 +0000 (16:49 +0200)]
Don't make distinction between former PUs and former CUs, put length
7 CU markers just after each DSO/executable chunk of CUs. For
non-op_multifile mode use cu_chunk as a CU counter rather than keeping
it at 0.
Jakub Jelinek [Thu, 17 May 2012 14:47:58 +0000 (16:47 +0200)]
Fix up updating .debug_types in -m mode - put .debug_types
section into the SAVED_SECTIONS group.
Jakub Jelinek [Thu, 17 May 2012 14:42:24 +0000 (16:42 +0200)]
Handle even dups (arguably producer bugs) even within a single CU.
Jakub Jelinek [Tue, 15 May 2012 14:54:27 +0000 (16:54 +0200)]
Rewrite .debug_types sections.
Jakub Jelinek [Tue, 15 May 2012 14:53:11 +0000 (16:53 +0200)]
Clear alt_off_htab on read_multifile failures.
Jakub Jelinek [Mon, 14 May 2012 15:31:38 +0000 (17:31 +0200)]
Add .gnu_debugaltlink sections during fi_multifile phase.
Jakub Jelinek [Mon, 14 May 2012 15:30:11 +0000 (17:30 +0200)]
Don't leak macro_htab hash tables.
Jakub Jelinek [Mon, 14 May 2012 11:11:44 +0000 (13:11 +0200)]
Add support for rewriting .debug_macro sections.
Jakub Jelinek [Fri, 11 May 2012 13:13:08 +0000 (15:13 +0200)]
During partition_dups_1 second_phase only include non-referenced
DIEs alongside with referenced ones if they can't reference
DIEs not moved into PUs.
Jakub Jelinek [Fri, 11 May 2012 13:13:08 +0000 (15:13 +0200)]
During partition_dups_1 second_phase only include non-referenced
DIEs alongside with referenced ones if they can't reference
DIEs not moved into PUs.
Jakub Jelinek [Fri, 11 May 2012 13:12:20 +0000 (15:12 +0200)]
Also compare arr[k]->die_cu now that all dups are processed at once
during partition_dups.
Jakub Jelinek [Fri, 11 May 2012 07:49:32 +0000 (09:49 +0200)]
In note_strp_offset2 during optimize_multifile record even off == 0
uses.
Jakub Jelinek [Fri, 11 May 2012 07:08:30 +0000 (09:08 +0200)]
Fix up get_AT and get_AT_string for fi_multifile.
Jakub Jelinek [Fri, 11 May 2012 06:50:08 +0000 (08:50 +0200)]
Always perform parent check in die_eq_1 for toplevel dies,
Remove unneeded inside{1,2} testing.
Jakub Jelinek [Fri, 11 May 2012 06:50:08 +0000 (08:50 +0200)]
Always perform parent check in die_eq_1 for toplevel dies,
Remove unneeded inside{1,2} testing.
Jakub Jelinek [Thu, 10 May 2012 19:21:35 +0000 (21:21 +0200)]
Backport rth's
2002-04-09 Richard Henderson <rth@redhat.com>
* hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
(htab_find_slot_with_hash): Likewise.
change.
Jakub Jelinek [Thu, 10 May 2012 19:21:35 +0000 (21:21 +0200)]
Backport rth's
2002-04-09 Richard Henderson <rth@redhat.com>
* hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
(htab_find_slot_with_hash): Likewise.
change.
Jakub Jelinek [Thu, 10 May 2012 19:19:26 +0000 (21:19 +0200)]
In partition_find_dups during optimize_multifile ignore DIEs that
have dups (due to compiler bugs) only within the same DSO or executable.
Jakub Jelinek [Thu, 10 May 2012 17:14:08 +0000 (19:14 +0200)]
Free new_data in op_multfile, add some debugging code, whitespace cleanup.
Jakub Jelinek [Thu, 10 May 2012 14:57:56 +0000 (16:57 +0200)]
finalize_strp during fi_multifile before checking section sizes.
Jakub Jelinek [Thu, 10 May 2012 14:34:36 +0000 (16:34 +0200)]
Fix test whether attributes extend beyond end of CU.
Jakub Jelinek [Thu, 10 May 2012 14:34:36 +0000 (16:34 +0200)]
Fix test whether attributes extend beyond end of CU.
Jakub Jelinek [Thu, 10 May 2012 13:45:26 +0000 (15:45 +0200)]
Add .note.gnu.build-id section to the common file.
Jakub Jelinek [Thu, 10 May 2012 12:49:15 +0000 (14:49 +0200)]
Further multifile optimization work.
Jakub Jelinek [Thu, 10 May 2012 12:36:46 +0000 (14:36 +0200)]
During partition_dups process all dups at once, looking for references
from everywhere.
Jakub Jelinek [Fri, 4 May 2012 12:48:39 +0000 (14:48 +0200)]
Don't emit any DW_TAG_imported_unit DIEs into the temporary file.
Jakub Jelinek [Thu, 3 May 2012 19:36:36 +0000 (21:36 +0200)]
- cache read_debug_line results to decrease memory usage
- put DIEs that won't be needed again into freelist, allocate from that
- clear die_op_type_referenced during wr_multifile
- use ELF_C_WRITE instead of ELC_C_WRITE_MMAP in elf_begin
Jakub Jelinek [Thu, 3 May 2012 19:06:40 +0000 (21:06 +0200)]
Use ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is
faster and doesn't leak mmapped region.
Jakub Jelinek [Thu, 3 May 2012 19:06:40 +0000 (21:06 +0200)]
Use ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is
faster and doesn't leak mmapped region.
Jakub Jelinek [Thu, 3 May 2012 15:15:53 +0000 (17:15 +0200)]
Further work on multi-file support, build from the gathered
sections a common file with DIEs and strings worth sharing between
different object files.
Jakub Jelinek [Thu, 3 May 2012 14:48:12 +0000 (16:48 +0200)]
Fix up handling of DW_FORM_ref_addr in write_die.
Jakub Jelinek [Thu, 3 May 2012 12:09:57 +0000 (14:09 +0200)]
During partition_dups, force together with anything that is worthwhile
to put into PUs also any DIEs that are referenced by those (even indirectly),
and any DIEs that are dups and referenced by the same set of CUs.
This way PUs should no longer DW_FORM_ref_addr to CU DIEs, unless they
were using DW_FORM_ref_addr already before.
Jakub Jelinek [Thu, 3 May 2012 14:48:12 +0000 (16:48 +0200)]
Fix up handling of DW_FORM_ref_addr in write_die.
Jakub Jelinek [Thu, 3 May 2012 12:09:57 +0000 (14:09 +0200)]
During partition_dups, force together with anything that is worthwhile
to put into PUs also any DIEs that are referenced by those (even indirectly),
and any DIEs that are dups and referenced by the same set of CUs.
This way PUs should no longer DW_FORM_ref_addr to CU DIEs, unless they
were using DW_FORM_ref_addr already before.
Jakub Jelinek [Mon, 30 Apr 2012 16:46:58 +0000 (18:46 +0200)]
Further little steps towards multi-file optimization.
Jakub Jelinek [Mon, 30 Apr 2012 14:17:25 +0000 (16:17 +0200)]
First step towards multifile DWARF optimizations.
While handling input files normally, this gathers interesting
data in temporary files for .debug_{info,abbrev,line,str} sections,
then right now skips optimization pass on the gathered sections
and writes the result into the filename given by -m option.
Jakub Jelinek [Mon, 30 Apr 2012 06:31:48 +0000 (08:31 +0200)]
Small bugfixes and code cleanups.
Jakub Jelinek [Thu, 26 Apr 2012 12:14:28 +0000 (14:14 +0200)]
Handle DW_AT_start_scope with DW_FORM_sec_offset like DW_AT_ranges
- avoid dup checking for DIEs containing it.
Jakub Jelinek [Thu, 26 Apr 2012 10:30:02 +0000 (12:30 +0200)]
Adjust .debug_aranges section if present.
Jakub Jelinek [Thu, 26 Apr 2012 09:20:15 +0000 (11:20 +0200)]
Put new_data and new_size info about debug sections directly into
debug_sections array, to simplify write_dso and not passing around
too many pointers and sizes.
Jakub Jelinek [Wed, 25 Apr 2012 16:53:44 +0000 (18:53 +0200)]
Optimize DW_AT_high_pc DW_FORM_addr for DWARF4+ into constant
class form DW_AT_high_pc (which is the size of the entity rather than
address of the first byte after it).
Jakub Jelinek [Tue, 24 Apr 2012 09:20:47 +0000 (11:20 +0200)]
.gdb_index support, for versions 4-6 try to update it, otherwise
remove it.
This page took 0.060197 seconds and 5 git commands to generate.