From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13845 invoked by alias); 30 May 2003 18:05:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13649 invoked from network); 30 May 2003 18:05:15 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.212) by sources.redhat.com with SMTP; 30 May 2003 18:05:15 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p2/8.12.5) with ESMTP id h4UI57fm000566; Fri, 30 May 2003 20:05:07 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6) with ESMTP id h4UI57aU012098; Fri, 30 May 2003 20:05:07 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p2/8.12.6/Submit) id h4UI5785012095; Fri, 30 May 2003 20:05:07 +0200 (CEST) Date: Fri, 30 May 2003 18:05:00 -0000 Message-Id: <200305301805.h4UI5785012095@elgar.kettenis.dyndns.org> From: Mark Kettenis To: ac131313@redhat.com CC: msnyder@redhat.com, gdb-patches@sources.redhat.com In-reply-to: <3EBD027F.8010403@redhat.com> (message from Andrew Cagney on Sat, 10 May 2003 09:45:35 -0400) Subject: Re: [PATCH/RFC] Fix asm-source.exp on FreeBSD References: <200305101105.h4AB5loE042084@elgar.kettenis.dyndns.org> <3EBD027F.8010403@redhat.com> X-SW-Source: 2003-05/txt/msg00568.txt.bz2 Date: Sat, 10 May 2003 09:45:35 -0400 From: Andrew Cagney > Ever since asm-source.exp was changed to do the final link using > gdb_compile, the tests have been failing for me. The problem is that > FreeBSD's crt1.o defines some symbols (__progname, environ) that are > referenced by libc.so, which makes the final link fail. Compiling > statically fixes the problem. > > I'm fairly certain that NetBSD and probably OpenBSD suffer from the > same problem, so perhaps I should change the regexp to *-*-*bsd* > instead. Can someone check whether that's indeed the case. > > I've been using this patch in my local tree for quite some time now, > so if I don't see any objections in the coming days, I'll check this > in. Honestly, I think it should be put back to using the linker directly. The intent of the test was to exercise the assembler functionality, when there was no C compiler. I confirmed this with Michael, the testsuite's author. I've never had the time to do it though :-( Me neither :-(. Simply reverting to using the linker directly would probably break quite a few targets. Fixing those problems would mean making extensive changes to DejaGNU. Therefore I've checked my patch in as a temporary workaround. These tests are pretty valuable, with all the new unwinder stuff and such. Mark