This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Aug 22, 2002 at 08:07:26PM -0400, Roland McGrath wrote: > I just experimented with making a static variable in rtld.c and redefining > GL using that locally, with strong_alias to define _rtld_global. It seems > to work. Can platforms like Alpha and SPARC avoid the relocs for local > symbols? Ok, Alpha can do it, just tested: static int i; int j __attribute__((visibility("hidden"))); int k[100] __attribute__((visibility("hidden"), section(".sdata"))); int foo (void) { return i; } int bar (void) { return j; } int baz (void) { return k[0]; } on CVS head, unfortunately it doesn't do this in visibility backport for 3.2 (yet, I'll have a look at this next weak). On SPARC, it is not possible until binutils/gcc/glibc are changed for the proposed new relocs. IA-64 is ok with both 3.2 backport and 3.3 mainline. So it IMHO looks like we need configury test for this (which will be unfortunately arch dependend, and have a default for not tested architecture (use bootstrap map)). Jakub
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |