[PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053]

H.J. Lu hjl.tools@gmail.com
Fri Sep 1 15:06:00 GMT 2017


On Thu, Aug 31, 2017 at 6:01 PM, Alan Modra <amodra@gmail.com> wrote:
> On Thu, Aug 31, 2017 at 06:53:08AM -0700, H.J. Lu wrote:
>> 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.
>
> This might be true, but the real problem is that elf/sofini.os appears
> on the libc.so link command line before -lgcc.
>

This has been fixed for glibc 2.27.


-- 
H.J.



More information about the Libc-alpha mailing list