libelfcopy: Suppress some DWARF warnings:
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>
diff --git a/dwarf.c b/dwarf.c
index 33d7469..4092596 100644
--- a/dwarf.c
+++ b/dwarf.c
@@ -2506,14 +2506,16 @@
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 @@
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 @@
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;