summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-07-03 18:16:21 -0400
committerMike Lockwood <lockwood@android.com>2009-07-03 18:16:21 -0400
commit19709f3b37c230a6b59302d68e26da010ae0d217 (patch)
tree20a0e409741ff46fcbc458a399286619ee711798
parentea327ae7042fa12c2f81acb7268321d46c98e075 (diff)
downloadelfcopy-19709f3b37c230a6b59302d68e26da010ae0d217.tar.gz
libelfcopy: Warning: There is a hole [0x271ee8 - 0x272108] in .debug_ranges section. libelfcopy: Warning: There is an overlap [0x272110 - 0x271f98] in .debug_ranges section. Signed-off-by: Mike Lockwood <lockwood@android.com>
-rw-r--r--dwarf.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/dwarf.c b/dwarf.c
index 33d7469..4092596 100644
--- a/dwarf.c
+++ b/dwarf.c
@@ -2506,14 +2506,16 @@ display_debug_loc (struct dwarf_section *section, void *file)
seen_first_offset = 1;
else
{
- if (start < next)
- warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"),
+ if (start < next) {
+/* warn (_("There is a hole [0x%lx - 0x%lx] in .debug_loc section.\n"),
(long)(start - section_begin), (long)(next - section_begin));
- else if (start > next) {
+*/
+ } else if (start > next) {
last_overlap = start;
- warn (_("There is an overlap of %ld bytes [0x%lx - 0x%lx] in .debug_loc section.\n"),
+/* warn (_("There is an overlap of %ld bytes [0x%lx - 0x%lx] in .debug_loc section.\n"),
(long)(start - next),
(long)(start - section_begin), (long)(next - section_begin));
+*/
}
}
start = next;
@@ -2864,7 +2866,7 @@ display_debug_ranges (struct dwarf_section *section,
seen_first_offset = 1;
else
{
- if (start < next)
+/* if (start < next)
warn (_("There is a hole [0x%lx - 0x%lx] in %s section.\n"),
(long)(start - section_begin),
(long)(next - section_begin), section->name);
@@ -2872,6 +2874,7 @@ display_debug_ranges (struct dwarf_section *section,
warn (_("There is an overlap [0x%lx - 0x%lx] in %s section.\n"),
(long)(start - section_begin),
(long)(next - section_begin), section->name);
+*/
}
start = next;