This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Subdirs


>Please be specific: Which functions you are in fact using refer to lots of
>code that you do not want?

I don't have many concrete examples right now.  Here are a few:

strtol (refers to btowc -> wcsmbsload -> gconv et al -> dl-open et al)
vfprintf (similarly plus MPN)
strerror (gettext)

(MPN in the above is obviously a slightly more extreme example; it's only 
redundant for me because I know I don't want to do any floating point work.  
Perhaps the code in question here is small enough that I can live with it, 
but I think a --without-fp compilation should probably omit it.)

I imagine any place where there is a string constant in the code is likely to 
involve gettext; strerror just happens to be the first one in my link map.  I 
guess perhaps one thing to do in this case is to introduce a stub gettext 
early in the link to satisfy all these references and avoid the real gettext 
being pulled in.

I'll do more experiments later.

p.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]