From owner-freebsd-stable Wed Sep 6 23:18:11 2000 Delivered-To: freebsd-stable@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 03C1337B423 for ; Wed, 6 Sep 2000 23:18:04 -0700 (PDT) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id NAA51751; Thu, 7 Sep 2000 13:14:30 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Thu, 7 Sep 2000 13:14:30 +0700 (NSS) From: Max Khon To: Randell Jesup Cc: freebsd-stable@FreeBSD.ORG, Bruce Bauman Subject: Re: GDB 4.18 and shared libraries (Mozilla) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On 6 Sep 2000, Randell Jesup wrote: > I (and some coworkers) are having problems with GDB under > 4.1-stable and shared libraries (particularily in Mozilla). Ever since > upgrading from 3.3 or 3.4-stable to 4.1-stable, GDB gives bogus line > numbers/addresses for references in shared libraries, doesn't show > arguments, can't display auto variables, etc. For functions in the > main executable, line numbers are right and arguments print. > > All the shared libraries were totally rebuilt after upgrading > (from scratch). > > Debug information seems to be present in the libraries as linked, > including line number info, but it's very hard to determine if it's > correct from the output of 'nm'. > > Any ideas? ld is broken. apply attached patch, rebuild everything in src/gnu/usr.bin/binutils and relink libraries. the patch is taken from binutils cvs (elf32-i386.c 1.8 -> 1.9) there is open PR for this (20373) but I cannot submit a followup for some reason. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message