This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053]
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 1 Sep 2017 08:06:31 -0700
- Subject: Re: [PATCH] Remove zero terminator for .eh_frame in libc.so [BZ #22053]
- Authentication-results: sourceware.org; auth=none
- References: <20170831135308.GA26865@gmail.com> <20170901010129.GK28143@bubble.grove.modra.org>
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.