]> sourceware.org Git - dwz.git/log
dwz.git
12 years agodwz-0.6 dwz-0.6
Jakub Jelinek [Tue, 17 Jul 2012 08:33:46 +0000 (10:33 +0200)]
dwz-0.6

12 years agoDefine NT_GNU_BUILD_ID if system elf.h doesn't define it.
Jakub Jelinek [Tue, 17 Jul 2012 08:10:58 +0000 (10:10 +0200)]
Define NT_GNU_BUILD_ID if system elf.h doesn't define it.

12 years agoAdd --version/-v support. Patch by Matt Newsome.
Jakub Jelinek [Tue, 17 Jul 2012 08:08:17 +0000 (10:08 +0200)]
Add --version/-v support.  Patch by Matt Newsome.

12 years agoHandle .gdb_index version 7. dwz-0.5
Jakub Jelinek [Fri, 29 Jun 2012 18:30:12 +0000 (20:30 +0200)]
Handle .gdb_index version 7.

12 years agoIn low-mem mode, don't count all DIEs twice for checking dwz-0.4
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.

12 years agoSilence __wur warning with -D_FORTIFY_SOURCE about fchown result unused. dwz-0.3
Jakub Jelinek [Fri, 15 Jun 2012 06:57:31 +0000 (08:57 +0200)]
Silence __wur warning with -D_FORTIFY_SOURCE about fchown result unused.

12 years agoTerminate struct option array for getopt_long to avoid crashes
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.

12 years agoMan page fixes.
Jakub Jelinek [Fri, 15 Jun 2012 06:53:27 +0000 (08:53 +0200)]
Man page fixes.

12 years agoFix up FSF addresses, add COPYING3 and COPYING.RUNTIME.
Jakub Jelinek [Fri, 15 Jun 2012 06:44:14 +0000 (08:44 +0200)]
Fix up FSF addresses, add COPYING3 and COPYING.RUNTIME.

12 years agoResync dwarf2.{def,h} from gcc's include/, remove local defines dwz-0.2
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.

12 years agoMerge commit 'ee1776899ce81b4b1cee995bfbfa60f2bcc79bd8'
Jakub Jelinek [Mon, 11 Jun 2012 13:00:41 +0000 (15:00 +0200)]
Merge commit 'ee1776899ce81b4b1cee995bfbfa60f2bcc79bd8'

12 years agoRevert "During partition_dups, force together with anything that is worthwhile"
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.

12 years agoRevert "Fix up handling of DW_FORM_ref_addr in write_die."
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.

12 years agoRevert "Use ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is"
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.

12 years agoRevert "During partition_dups process all dups at once, looking for references"
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.

12 years agoRevert "Fix test whether attributes extend beyond end of CU."
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.

12 years agoRevert "Backport rth's"
Jakub Jelinek [Mon, 11 Jun 2012 12:59:04 +0000 (14:59 +0200)]
Revert "Backport rth's"

This reverts commit 159065b1e5c430d77e14b76212304593bbd0eb65.

12 years agoRevert "Always perform parent check in die_eq_1 for toplevel dies,"
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.

12 years agoRevert "Also compare arr[k]->die_cu now that all dups are processed at once"
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.

12 years agoRevert "During partition_dups_1 second_phase only include non-referenced"
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.

12 years agoRevert "Handle even dups (arguably producer bugs) even within a single CU."
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.

12 years agoRevert "Fix size computation for DW_FORM_string DW_AT_comp_dir attribute on PUs."
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.

12 years agoRevert "Compile with -D_FILE_OFFSET_BITS=64."
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.

12 years agoFurther small man page changes. multifile
Jakub Jelinek [Fri, 8 Jun 2012 12:47:05 +0000 (14:47 +0200)]
Further small man page changes.

12 years agoAdd license file.
Jakub Jelinek [Fri, 8 Jun 2012 12:14:00 +0000 (14:14 +0200)]
Add license file.

12 years agoSmall tweaks.
Jakub Jelinek [Fri, 8 Jun 2012 12:09:57 +0000 (14:09 +0200)]
Small tweaks.

12 years agoAdd man page, add make install rules.
Jakub Jelinek [Fri, 8 Jun 2012 12:00:47 +0000 (14:00 +0200)]
Add man page, add make install rules.

12 years agoAccept -? as alternative to --help.
Jakub Jelinek [Fri, 8 Jun 2012 11:36:45 +0000 (13:36 +0200)]
Accept -? as alternative to --help.

12 years agoIn checksum_die and checksum_ref_die handle DW_FORM_ref_addr in fi_multifile
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.

12 years agoFix up adjusting .gdb_index CU vectors if they have more than one
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.

12 years agoSupport updating of .gdb_index even for -m, create .gdb_index in the
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.

12 years agoUse enums instead of defines in a few places.
Jakub Jelinek [Wed, 6 Jun 2012 06:45:37 +0000 (08:45 +0200)]
Use enums instead of defines in a few places.

12 years agoRemove .debug_pubnames and/or .debug_pubtypes section, instead of
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.

12 years agoAdd lots of comments.
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.

12 years agoSwitch to gcc's dwarf{2.def,2.h,names.c} triplet from older dwarf2.h.
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.

12 years agoAdd -M and -r options.
Jakub Jelinek [Mon, 4 Jun 2012 14:04:48 +0000 (16:04 +0200)]
Add -M and -r options.

12 years agoHandle properly with -m the case when all of .debug_str is moved into the
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.

12 years agoFix up .gdb_index rewriting if .debug_types section is not present.
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.

12 years agoFix up TU signature store for big-endian.
Jakub Jelinek [Wed, 30 May 2012 17:16:42 +0000 (19:16 +0200)]
Fix up TU signature store for big-endian.

12 years agoFix up .gdb_index adjusting if .debug_types section is present.
Jakub Jelinek [Wed, 30 May 2012 16:56:45 +0000 (18:56 +0200)]
Fix up .gdb_index adjusting if .debug_types section is present.

12 years agoImplement special low_mem mode, which roughly halves amount of
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.

12 years agoHandle ref->die_collapsed_child in mark_refs.
Jakub Jelinek [Thu, 24 May 2012 16:45:32 +0000 (18:45 +0200)]
Handle ref->die_collapsed_child in mark_refs.

12 years agoHandle the case where multi_line_off and/or multi_str_off is 0
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.

12 years agoFree resa array.
Jakub Jelinek [Wed, 23 May 2012 17:48:28 +0000 (19:48 +0200)]
Free resa array.

12 years agoAdd -h option to handle hardlinks properly. Don't process files with
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.

12 years agoWire -q also in getopt_long argument.
Jakub Jelinek [Wed, 23 May 2012 17:44:50 +0000 (19:44 +0200)]
Wire -q also in getopt_long argument.

12 years agoCompile 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.

12 years agoCompile 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.

12 years agoAdd -q option to make it more quiet.
Jakub Jelinek [Wed, 23 May 2012 15:35:55 +0000 (17:35 +0200)]
Add -q option to make it more quiet.

12 years agoSave some more memory by removing die_cu fields from struct dw_die.
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.

12 years agoUse origin instead of die->die_nextdup in DW_TAG_imported_unit handling.
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.

12 years agoDon't segfault if fi_multifile create_import_tree doesn't find
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.

12 years agoFix size computation for DW_FORM_string DW_AT_comp_dir attribute on PUs.
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.

12 years agoFix 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.

12 years agoFix error handling during {rd,fi}_multifile.
Jakub Jelinek [Tue, 22 May 2012 12:35:52 +0000 (14:35 +0200)]
Fix error handling during {rd,fi}_multifile.

12 years agoReplace referenced children during collapsing with 16 (resp. 12) bytes
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.

12 years agoSave memory during optimize_multifile by collapsing non-referenced
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).

12 years agoAssume that in GCC created .debug_types abbrev offsets only increase
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).

12 years agoAdd a hashtable for abbrev offsets to decrease amount of abbrev_tag
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).

12 years agoDuring multifile_optimize, remove from off_htab all DIEs that are
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.

12 years agoHandle even dups (arguably producer bugs) even within a single CU.
Jakub Jelinek [Thu, 17 May 2012 14:56:16 +0000 (16:56 +0200)]
Handle even dups (arguably producer bugs) even within a single CU.

12 years agoDon't make distinction between former PUs and former CUs, put length
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.

12 years agoFix up updating .debug_types in -m mode - put .debug_types
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.

12 years agoHandle even dups (arguably producer bugs) even within a single CU.
Jakub Jelinek [Thu, 17 May 2012 14:42:24 +0000 (16:42 +0200)]
Handle even dups (arguably producer bugs) even within a single CU.

12 years agoRewrite .debug_types sections.
Jakub Jelinek [Tue, 15 May 2012 14:54:27 +0000 (16:54 +0200)]
Rewrite .debug_types sections.

12 years agoClear alt_off_htab on read_multifile failures.
Jakub Jelinek [Tue, 15 May 2012 14:53:11 +0000 (16:53 +0200)]
Clear alt_off_htab on read_multifile failures.

12 years agoAdd .gnu_debugaltlink sections during fi_multifile phase.
Jakub Jelinek [Mon, 14 May 2012 15:31:38 +0000 (17:31 +0200)]
Add .gnu_debugaltlink sections during fi_multifile phase.

12 years agoDon't leak macro_htab hash tables.
Jakub Jelinek [Mon, 14 May 2012 15:30:11 +0000 (17:30 +0200)]
Don't leak macro_htab hash tables.

12 years agoAdd support for rewriting .debug_macro sections.
Jakub Jelinek [Mon, 14 May 2012 11:11:44 +0000 (13:11 +0200)]
Add support for rewriting .debug_macro sections.

12 years agoDuring partition_dups_1 second_phase only include non-referenced
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.

12 years agoDuring partition_dups_1 second_phase only include non-referenced
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.

12 years agoAlso compare arr[k]->die_cu now that all dups are processed at once
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.

12 years agoIn note_strp_offset2 during optimize_multifile record even off == 0
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.

12 years agoFix up get_AT and get_AT_string for fi_multifile.
Jakub Jelinek [Fri, 11 May 2012 07:08:30 +0000 (09:08 +0200)]
Fix up get_AT and get_AT_string for fi_multifile.

12 years agoAlways perform parent check in die_eq_1 for toplevel dies,
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.

12 years agoAlways perform parent check in die_eq_1 for toplevel dies,
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.

12 years agoBackport rth's
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.

12 years agoBackport rth's
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.

12 years agoIn partition_find_dups during optimize_multifile ignore DIEs that
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.

12 years agoFree new_data in op_multfile, add some debugging code, whitespace cleanup.
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.

12 years agofinalize_strp during fi_multifile before checking section sizes.
Jakub Jelinek [Thu, 10 May 2012 14:57:56 +0000 (16:57 +0200)]
finalize_strp during fi_multifile before checking section sizes.

12 years agoFix 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.

12 years agoFix 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.

12 years agoAdd .note.gnu.build-id section to the common file.
Jakub Jelinek [Thu, 10 May 2012 13:45:26 +0000 (15:45 +0200)]
Add .note.gnu.build-id section to the common file.

12 years agoFurther multifile optimization work.
Jakub Jelinek [Thu, 10 May 2012 12:49:15 +0000 (14:49 +0200)]
Further multifile optimization work.

12 years agoDuring partition_dups process all dups at once, looking for references
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.

12 years agoDon't emit any DW_TAG_imported_unit DIEs into the temporary file.
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.

12 years ago- cache read_debug_line results to decrease memory usage
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

12 years agoUse ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is
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.

12 years agoUse ELF_C_WRITE instead of ELF_C_WRITE_MMAP for elf_begin, it is
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.

12 years agoFurther work on multi-file support, build from the gathered
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.

12 years agoFix up handling of DW_FORM_ref_addr in write_die.
Jakub Jelinek [Thu, 3 May 2012 14:48:12 +0000 (16:48 +0200)]
Fix up handling of DW_FORM_ref_addr in write_die.

12 years agoDuring partition_dups, force together with anything that is worthwhile
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.

12 years agoFix up handling of DW_FORM_ref_addr in write_die.
Jakub Jelinek [Thu, 3 May 2012 14:48:12 +0000 (16:48 +0200)]
Fix up handling of DW_FORM_ref_addr in write_die.

12 years agoDuring partition_dups, force together with anything that is worthwhile
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.

12 years agoFurther little steps towards multi-file optimization.
Jakub Jelinek [Mon, 30 Apr 2012 16:46:58 +0000 (18:46 +0200)]
Further little steps towards multi-file optimization.

12 years agoFirst step towards multifile DWARF optimizations.
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.

12 years agoSmall bugfixes and code cleanups.
Jakub Jelinek [Mon, 30 Apr 2012 06:31:48 +0000 (08:31 +0200)]
Small bugfixes and code cleanups.

12 years agoHandle DW_AT_start_scope with DW_FORM_sec_offset like DW_AT_ranges
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.

12 years agoAdjust .debug_aranges section if present.
Jakub Jelinek [Thu, 26 Apr 2012 10:30:02 +0000 (12:30 +0200)]
Adjust .debug_aranges section if present.

This page took 0.058426 seconds and 5 git commands to generate.