From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12036 invoked by alias); 3 Sep 2012 18:59:30 -0000 Received: (qmail 12024 invoked by uid 22791); 3 Sep 2012 18:59:29 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KAM_STOCKTIP,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Sep 2012 18:59:17 +0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug dynamic-link/14370] SIGFPE in 'ldd -r' Date: Mon, 03 Sep 2012 18:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00017.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14370 --- Comment #13 from H.J. Lu 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.