This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

Re: What is the minimum acceptable optimization for compiling glibc?


On Saturday 05 December 2009 17:29:25 Carlos O'Donell wrote:
> On Sat, Dec 5, 2009 at 5:20 PM, Mike Frysinger wrote:
> > On Saturday 05 December 2009 16:06:13 Howard B. Golden wrote:
> >> I understand that it isn't possible to compile glibc without
> >> optimization. However, I would like to use the minimum acceptable
> >> optimization so I can trace how the dynamic loading code works, with the
> >> compiled code as close to the source as possible.
> >>
> >> In other words, if I include -O1, can I then turn off some of the
> >> optimizations included in -O1 and still compile successfully? If so,
> >> what CFLAGS should I use? Thanks!
> >
> > use -O1.  anything less and you're on your own.  the exact answer may
> > depend on both the gcc version and the architecture/abi.
> 
> In order to avoid relocations in the early dynamic loader startup
> (before relocations themselves have been processed) certain functions
> *must* be inlined by the compiler. If such functions fail to be
> inlined you will see a crash calling the function that was not
> inlined.

that doesnt really change my answer at all
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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