bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22048] Incorrect .eh_frame section in libc.so


From: hjl.tools at gmail dot com
Subject: [Bug ld/22048] Incorrect .eh_frame section in libc.so
Date: Thu, 31 Aug 2017 02:36:48 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22048

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
address@hidden glibc]$ cat elf/sofini.c 
/* Finalizer module for ELF shared C library.  This provides terminating
   null pointer words in the `.ctors' and `.dtors' sections.  */

#ifndef NO_CTORS_DTORS_SECTIONS
static void (*const __CTOR_END__[1]) (void)
     __attribute__ ((used, section (".ctors")))
     = { 0 };
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 };
address@hidden glibc]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]