NetBSD Problem Report #33052
From www@netbsd.org Fri Mar 10 18:44:24 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id AC49F63B8A7; Fri, 10 Mar 2006 18:44:24 +0000 (UTC)
Message-Id: <20060310184424.AC49F63B8A7@narn.netbsd.org>
Date: Fri, 10 Mar 2006 18:44:24 +0000 (UTC)
From: nand@mac.com
Reply-To: nand@mac.com
To: gnats-bugs@netbsd.org
Subject: ld refuse "-Tdata" option on NetBSD/hpcmips
X-Send-Pr-Version: www-1.0
>Number: 33052
>Category: toolchain
>Synopsis: ld refuse "-Tdata" option on NetBSD/hpcmips
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: skrll
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 10 18:45:00 +0000 2006
>Closed-Date: Sat Dec 05 14:32:02 +0000 2009
>Last-Modified: Sat Dec 05 14:32:02 +0000 2009
>Originator: Nozomu Ando
>Release: 3.99.15
>Organization:
>Environment:
NetBSD hpcmips0 3.99.15 NetBSD 3.99.15 (LR) #0: Mon Feb 20 08:21:37 JST 2006 nand@mik:/w/netbsd/hpcmips/060216/obj/sys/arch/hpcmips/compile/LR hpcmips
>Description:
Since binutils revised 2.16.1, ld refuses "-Tdata" option and show an error message:
Not enough room for program headers (allocated 7, need 8)
>How-To-Repeat:
% echo "main(){}" > a.c
% cc -Wl,-Tdata,0x10000000 a.c
ld: a.out: Not enough room for program headers (allocated 7, need 8)
ld: final link failed: Bad value
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: toolchain-manager->skrll
Responsible-Changed-By: skrll@netbsd.org
Responsible-Changed-When: Wed, 22 Mar 2006 07:23:17 +0000
Responsible-Changed-Why:
I'll handle this.
State-Changed-From-To: open->suspended
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 14 Apr 2008 01:05:05 +0000
State-Changed-Why:
This is a lame and long-standing bug in GNU binutils. If you complain to
them loudly enough, they might fix it, but that's not too likely. (They
will just tell you that -Tdata doesn't make sense in ELF, which is
nonsense, and tell you to use a linker script, which is a pain.) If
skrll wants to fix it, great, but realistically that probably isn't going
to happen.
From: Nick Hudson <skrll@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: netbsd-bugs@netbsd.org,
gnats-admin@netbsd.org,
dholland@netbsd.org,
nand@mac.com
Subject: Re: toolchain/33052 (ld refuse "-Tdata" option on NetBSD/hpcmips)
Date: Fri, 18 Apr 2008 11:51:58 +0100
On Monday 14 April 2008 02:05:06 dholland@netbsd.org wrote:
> Synopsis: ld refuse "-Tdata" option on NetBSD/hpcmips
>
> State-Changed-From-To: open->suspended
> State-Changed-By: dholland@NetBSD.org
> State-Changed-When: Mon, 14 Apr 2008 01:05:05 +0000
> State-Changed-Why:
> This is a lame and long-standing bug in GNU binutils. If you complain to
> them loudly enough, they might fix it, but that's not too likely. (They
> will just tell you that -Tdata doesn't make sense in ELF, which is
> nonsense, and tell you to use a linker script, which is a pain.) If
> skrll wants to fix it, great, but realistically that probably isn't going
> to happen.
It's fixed in binutils 2.18
I was going to close this when/if I imported a newer bintuils.
Nick
State-Changed-From-To: suspended->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Fri, 20 Nov 2009 22:52:24 +0000
State-Changed-Why:
Is this a problem with new binutils?
From: nand <nand@mac.com>
To: gnats-bugs@NetBSD.org
Cc: Ando Nozomu <nand@mac.com>
Subject: Re: toolchain/33052
Date: Sat, 05 Dec 2009 22:50:20 +0900
I have confirmed that the problem is fixed on NetBSD 5.99.22 2009-11-30
thanks,
State-Changed-From-To: feedback->closed
State-Changed-By: dsl@NetBSD.org
State-Changed-When: Sat, 05 Dec 2009 14:32:02 +0000
State-Changed-Why:
Confirmed fixed in latest binutils
>Unformatted:
(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.