summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-31 06:49:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-31 06:49:37 -0700
commitb6135d766b14d22779c7d28b47402ece59a16eab (patch)
tree271136cd57bd456cead5c8d43f89b7295c23755b
parentecd0747df388f3925d4839740b0abcf43d0a9fb2 (diff)
downloadglibc-hjl/pr22053/master.tar.gz
Remove zero terminator for .eh_frame in libc.so [BZ #22053]hjl/pr22053/master
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. [BZ #22053] * elf/sofini.c (__FRAME_END__): Removed.
-rw-r--r--elf/sofini.c8
1 files changed, 0 insertions, 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 };