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(?)


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

	Jakub


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