From owner-freebsd-sparc64@FreeBSD.ORG Thu Feb 9 17:50:08 2006 Return-Path: X-Original-To: freebsd-sparc64@hub.freebsd.org Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E389616A422 for ; Thu, 9 Feb 2006 17:50:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DE1E43D53 for ; Thu, 9 Feb 2006 17:50:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k19Ho6dv001455 for ; Thu, 9 Feb 2006 17:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k19Ho6rx001454; Thu, 9 Feb 2006 17:50:06 GMT (envelope-from gnats) Date: Thu, 9 Feb 2006 17:50:06 GMT Message-Id: <200602091750.k19Ho6rx001454@freefall.freebsd.org> To: freebsd-sparc64@FreeBSD.org From: Marius Strobl Cc: Subject: Re: sparc64/89486: firefox and thunderbird is broken on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marius Strobl List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 17:50:09 -0000 The following reply was made to PR sparc64/89486; it has been noted by GNATS. From: Marius Strobl To: "David O'Brien" Cc: bug-followup@freebsd.org Subject: Re: sparc64/89486: firefox and thunderbird is broken on sparc64 Date: Thu, 9 Feb 2006 18:42:51 +0100 On Fri, Jan 13, 2006 at 07:50:06AM +0000, Andrew Belashov wrote: > > I have fully working firefox, built from ports. > > How-To-Fix: > > Save attached patch or get it from NetBSD: > http://cvsweb.netbsd.org/bsdweb.cgi/src/gnu/dist/binutils/bfd/elf64-sparc.c.diff?r1=1.3&r2=1.4&f=h&f=u > > --- contrib/binutils/bfd/elf64-sparc.c.orig Thu Aug 5 08:31:26 2004 > +++ contrib/binutils/bfd/elf64-sparc.c Sun Jan 1 19:00:33 2006 > @@ -1638,7 +1638,11 @@ sparc64_elf_adjust_dynamic_symbol (info, > || h->root.type == bfd_link_hash_defweak) > && (h->root.u.def.section->flags & SEC_CODE) != 0)) > { > - if (! elf_hash_table (info)->dynamic_sections_created) > + if (! info->shared > + && (h->elf_link_hash_flags & ELF_LINK_HASH_DEF_DYNAMIC) == 0 > + && (h->elf_link_hash_flags & ELF_LINK_HASH_REF_DYNAMIC) == 0 > + && h->root.type != bfd_link_hash_undefweak > + && h->root.type != bfd_link_hash_undefined) > { > /* This case can occur if we saw a WPLT30 reloc in an input > file, but none of the input files were dynamic objects. > David, could you please import the above fix into FreeBSD in order to get Firefox and Thunderbird working? It's a backport of elf64-sparc.c rev. 1.101 (sourceware.org repository) to Binutils 2.15. Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details.