NetBSD Problem Report #32713
From dogcow@babymeat.com Fri Feb 3 01:17:07 2006
Return-Path: <dogcow@babymeat.com>
Received: from veal.babymeat.com (veal.babymeat.com [155.53.1.242])
by narn.netbsd.org (Postfix) with ESMTP id 94A9B63B876
for <gnats-bugs@gnats.NetBSD.org>; Fri, 3 Feb 2006 01:17:07 +0000 (UTC)
Message-Id: <20060203011707.837161743@veal.babymeat.com>
Date: Thu, 2 Feb 2006 17:17:07 -0800 (PST)
From: dogcow@babymeat.com
Reply-To: dogcow@babymeat.com
To: gnats-bugs@netbsd.org
Subject: ld.elf_so breaks with new bntools
X-Send-Pr-Version: 3.95
>Number: 32713
>Category: toolchain
>Synopsis: ld.elf_so breaks with new bntools
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 03 01:20:00 +0000 2006
>Closed-Date: Fri Feb 03 07:15:59 +0000 2006
>Last-Modified: Fri Feb 03 07:17:30 +0000 2006
>Originator: Tom Spindler
>Release: NetBSD 3.99.15
>Organization:
>Environment:
FreeBSD marble.corp.yahoo.com 4.11-YAHOO-20050519 FreeBSD 4.11-YAHOO-20050519 #1: Tue Jul 19 16:17:23 PDT 2005 root@marble.corp.yahoo.com:/home/src/sys/compile/DESKTOP i386
Architecture: i386
Machine: i386
>Description:
ld.elf_so is linked with the options
-shared -symbolic -nostartfiles -Wl,-non_shared
The new binutils do not like this, with the following error:
-static and -shared may not be used together
Presumably, non_shared is now treated differently with the newly imported
binutils.
>How-To-Repeat:
./build.sh
[lots of text]
# link ld.elf_so
/home/dogcow/work/nbsrc/../nbobj/tools/bin/i386--netbsdelf-gcc -shared -symbolic -nostartfiles -Wl,-non_shared -Wl,-e,.rtld_start -o ld.elf_so rtld_start.o mdreloc.o rtld.o reloc.o symbol.o malloc.o xmalloc.o xprintf.o debug.o map_object.o load.o search.o headers.o paths.o -L/home/dogcow/work/nbsrc/../nbobj/obj/home/dogcow/work/nbsrc/lib/libc -L/home/dogcow/work/nbsrc/../nbobj/dd/usr/lib -lc_pic
/home/dogcow/work/nbobj/tools/bin/../lib/gcc-lib/i386--netbsdelf/3.3.3/../../../../i386--netbsdelf/bin/ld: -static and -shared may not be used together
collect2: ld returned 1 exit status
>Fix:
unknown. The change to add both -shared and -non_shared was in -r1.66 of
src/libexec/ld.elf_so/Makefile by uwe; prior to that,
'-Bshareable -Bsymbolic' was used.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->Closed
State-Changed-By: dogcow@netbsd.org
State-Changed-When: Fri, 03 Feb 2006 07:15:59 +0000
State-Changed-Why:
1.73 of ld.elf_so/Makefile fixed things.
State-Changed-From-To: Closed->closed
State-Changed-By: dogcow@netbsd.org
State-Changed-When: Fri, 03 Feb 2006 07:17:30 +0000
State-Changed-Why:
because I can't type and did 'state: Closed' the first time aroudn.
.
>Unformatted:
>Status: closed
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.