This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/9] Revert "dwarf2: Pad size of .debug_line section."
- From: Christian Eggers <ceggers at gmx dot de>
- To: binutils at sourceware dot org
- Cc: Christian Eggers <ceggers at gmx dot de>
- Date: Thu, 21 Nov 2019 22:17:25 +0100
- Subject: [PATCH 2/9] Revert "dwarf2: Pad size of .debug_line section."
- References: <20191121211732.16653-1-ceggers@gmx.de>
This reverts commit 145c4477d239fef4e31a457ff8a1ba7153e9a448.
* dwarf2dbg.c (out_debug_line): Revert: Pad size of .debug_line
section.
---
gas/dwarf2dbg.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 37540decfd..dbb9a68d48 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1815,7 +1815,6 @@ out_debug_line (segT line_seg)
symbolS *line_end;
struct line_seg *s;
int sizeof_offset;
- addressT section_end, section_end_aligned;
memset (&exp, 0, sizeof exp);
sizeof_offset = out_header (line_seg, &exp);
@@ -1877,16 +1876,6 @@ out_debug_line (segT line_seg)
in the DWARF Line Number header. */
subseg_set (subseg_get (".debug_line_end", FALSE), 0);
- /* Pad size of .debug_line section to a multiple of OCTETS_PER_BYTE.
- Simply sizing the section in md_section_align() is not sufficient,
- also the size field in the .debug_line header must be a multiple
- of OCTETS_PER_BYTE. Not doing so will introduce gaps within the
- .debug_line sections after linking. */
- section_end = frag_now_fix_octets ();
- section_end_aligned = (section_end + OCTETS_PER_BYTE - 1) & -OCTETS_PER_BYTE;
- for ( ; section_end != section_end_aligned; section_end++)
- out_inc_line_addr (0, 0); /* NOP */
-
symbol_set_value_now_octets (line_end);
}
--
2.16.4