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: Versioning mess proved!!!


Jack Howarth <howarth@fuse.net> writes:

> This code still segfaults when I run...
> 
> LD_LIBRARY_PATH=./22/ LD_BIND_NOW=1 ./tA
> 
>     0x10010828
>     Segmentation fault (core dumped)

Where and what are the symbols and relocations (use readelf -a XXX for
the latter).

Also, I'm not convinced that the test program is having the same
problem as the libc code.  So, if you could try a modified
sysdeps/generic/initfini.c with `call_gmon_start' replaced with

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static void
call_gmon_start(void)
{
  extern void __gmon_start__ (void) __attribute__ ((weak)); /*weak_extern (__gmon_start__);*/
  void (*gmon_start) (void) = __gmon_start__;
  asm volatile ("" : "=r" (gmon_start) : "0" (gmon_start));

  if (gmon_start)
    gmon_start ();  
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

you can help a lot.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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