This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Thu, 31 Aug 2017 06:53:08 -0700
- Subject: [PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053]
- Authentication-results: sourceware.org; auth=none
elf/sofini.c has a zero terminator for .eh_frame in libc.so. It was
added before -eh-frame-hdr is added to ld. Since -eh-frame-hdr is
always used to build libc.so, zero terminator in elf/sofini.c can be
removed.
Tested on x86-64. OK for master?
H.J.
---
[BZ #22053]
* elf/sofini.c (__FRAME_END__): Removed.
---
elf/sofini.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/elf/sofini.c b/elf/sofini.c
index 13e74b7903..7ec313be4e 100644
--- a/elf/sofini.c
+++ b/elf/sofini.c
@@ -9,11 +9,3 @@ static void (*const __DTOR_END__[1]) (void)
__attribute__ ((used, section (".dtors")))
= { 0 };
#endif
-
-/* Terminate the frame unwind info section with a 4byte 0 as a sentinel;
- this would be the 'length' field in a real FDE. */
-
-typedef unsigned int ui32 __attribute__ ((mode (SI)));
-static const ui32 __FRAME_END__[1]
- __attribute__ ((used, section (".eh_frame")))
- = { 0 };
--
2.13.5