This is the mail archive of the glibc-bugs@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]

[Bug dynamic-link/14370] SIGFPE in 'ldd -r'


http://sourceware.org/bugzilla/show_bug.cgi?id=14370

--- Comment #13 from H.J. Lu <hjl.tools at gmail dot com> 2012-09-03 18:59:16 UTC ---
(In reply to comment #12)
> > 
> > Thank you very much for the triage! Shall we mark this RESOLVED INVALID?
> 
> please no, i'd like to see a binutils/ld runtime error at least for such cases.

ld does generate a link-time error if libc.so is used for
linking:

[hjl@gnu-6 pr14370]$ cat x.c
int errno = 3;

int
bar (void)
{
  return errno;
}
[hjl@gnu-6 pr14370]$ make libfoo.so
gcc -m32    -c -o x.o x.c
./ld -m elf_i386 -shared -o libfoo.so x.o -L/usr/lib -lm
[hjl@gnu-6 pr14370]$ make libbar.so
./ld -m elf_i386 -shared -o libbar.so x.o -L/usr/lib -lc
./ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS
definition in x.o section .data
/lib/libc.so.6: could not read symbols: Bad value
make: *** [libbar.so] Error 1
[hjl@gnu-6 pr14370]$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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