This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: C Start-Up shared vs static
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Charles Coldwell <coldwell at frank dot harvard dot edu>
- Cc: libc-help at sourceware dot org
- Date: Fri, 4 Dec 2009 09:14:22 -0500
- Subject: Re: C Start-Up shared vs static
- References: <alpine.LRH.2.00.0912040847340.28787@frank.harvard.edu>
On Fri, Dec 4, 2009 at 8:48 AM, Charles Coldwell
<coldwell@frank.harvard.edu> wrote:
> So it seems to me there is a problem with including
>
> glibc-ports-2.8/sysdeps/arm/elf/start.S
>
> in both the shared and static libraries but including
>
> glibc-2.8/csu/elf-init.c
>
> in only the static library. ?What is the correct thing to do in this
> situation?
Current git head has ARM's start.S loading __libc_csu_init and
__libc_csu_fini via GOT entries in the shared case.
This patch added the code to distinguish between shared and static
cases and use the GOT for shared:
http://sourceware.org/git/?p=glibc-ports.git;a=commitdiff;h=856cb7775f0dc086c62eb2610e6e5613926e0a99
You might be able to backport this and see if it fixes your issue.
Cheers,
Carlos.