This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: glibc + add new function
- From: Ashutosh Sharma <ashu0204 at yahoo dot com>
- To: Carlos O'Donell <carlos at systemhalted dot org>
- Cc: libc-help at sourceware dot org
- Date: Sun, 21 Jun 2009 22:39:42 -0700 (PDT)
- Subject: Re: glibc + add new function
Hello
Thanks for the reply.
Yes i have added declarations in string/string.h.
regards,
+--------------------+ \\// +-----------------------------+
| Ashutosh Sharma | ( .. ) | ashu0204@yahoo.com |
+--------------------+-ooO-(__)-Ooo-+-----------------------------+
--- On Sun, 6/21/09, Carlos O'Donell <carlos@systemhalted.org> wrote:
> From: Carlos O'Donell <carlos@systemhalted.org>
> Subject: Re: glibc + add new function
> To: "Ashutosh Sharma" <ashu0204@yahoo.com>
> Cc: libc-help@sourceware.org
> Date: Sunday, June 21, 2009, 8:38 AM
> On Fri, Jun 19, 2009 at 1:35 AM,
> Ashutosh Sharma<ashu0204@yahoo.com>
> wrote:
> > I have added new function to glibc. I am able to build
> the system successfully. But after installation i found new
> function is only part of libc.a not libc.so.6
> >
> > i have added new function to
> sysdep/powerpc/powerpc32/function.S
>
> OK.
>
> > i have updated make file in string/Makefile
> (routines)
>
> This is incorrect. You should be adding function.S to the
> appropriate
> variable in sysdeps/powerpc/powerpc32/Makefile, but only
> when "ifeq
> ($(subdir),string)". You should never modify a non-machine
> Makefile if
> you are adding a machine-dependent function.
>
> > i have update header file include/string.h
> ?(libc_hidden_builtin_proto (function)
>
> Did you add your function to the declarations in
> string/string.h?
>
> Cheers,
> Carlos.
>