glibc + add new function

Ashutosh Sharma ashu0204@yahoo.com
Mon Jun 22 05:39:00 GMT 2009


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.
> 






More information about the Libc-help mailing list