This is the mail archive of the libc-alpha@sources.redhat.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: __gmon_start__ issues between 2.1.x and 2.2.x on sparc(?)


Jakub Jelinek <jakub@redhat.com> writes:

> On Wed, Feb 21, 2001 at 10:32:38PM +0100, Franz Sirl wrote:
> > Actually using -fPIC doesn't work on PPC and that leads to a possible reason 
> > why this fix won't work for sparc, glibc on sparc uses -fPIC (why?) to 
> > compile glibc, whereas PPC uses -fpic.
> > 
> > Andreas, can you try to add
> > 
> > pic-ccflag = -fpic
> > 
> > to sysdeps/sparc/Makefile and see if that fixes it? That should also be quite 
> > a performance improvement on sparc.
> 
> a) the test seems to work for me on sparc, don't know why it fails for
> Andreas

It works now for me after using -fpic for the main program.  Thanks
for the hint, Franz, and thanks for the patch, Jakub.

Franz can you make a test for binutils out of this, please?

Thanks,
Andreas

> b) you cannot use -fpic on sparc64 (sizeof .got is ~ 14K > 8K) for libc.so.6
> plus on sparc32 it is hazard (with some older linkers it will not work since
> they don't place __GLOBAL_OFFSET_TABLE__ in the middle of .got, otherwise 7K
> < 8K, so for some time it will suffice)
> c) it should not make any difference in your test

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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