From mint-bounce@lists.fishpool.fi  Tue Aug 16 22:44:45 2005
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Subject: Re: [MiNT] [BINUTILS] 2.16.1howto
From: Mark Duckworth <mduckworth@atari-source.com>
To: Patrice Mandin <mandin.patrice@wanadoo.fr>
Cc: Mint List <mint@fishpool.com>
In-Reply-To: <20050816223241.62aec2a2.mandin.patrice@wanadoo.fr>
References: <20050815162154.49818cfb.mandin.patrice@wanadoo.fr>
	 <1124116320.7719.33.camel@jetpack.demon.co.uk>
	 <20050816190800.54928fc6.mandin.patrice@wanadoo.fr>
	 <20050816223241.62aec2a2.mandin.patrice@wanadoo.fr>
Content-Type: text/plain; charset=utf-8
Date: Tue, 16 Aug 2005 16:40:55 -0400
Message-Id: <1124224855.2960.17.camel@mduckworth.phillypark.net>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.3 (2.2.3-2.1.fc4.nr) 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: mduckworth@atari-source.com
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=AWL,
 BAYES_00
X-Spam-Level: 
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by wh58-508.st.uni-magdeburg.de id j7GKihSW011192

On Tue, 2005-08-16 at 22:32 +0200, Patrice Mandin wrote:
> Le Tue, 16 Aug 2005 19:08:00 +0200
> Patrice Mandin <mandin.patrice@wanadoo.fr> a écrit:
> 
> > I just finished to write my page, with the final patch. Now testing
> > and debugging is needed. I hope the infos I wrote there will help
> > other to find what may prevent it from working.
> 
> OK, I tested by compiling a simple "hello world" program. The gcc
> compilation did not change (i.e. from .c to .s), gas worked (from .s to
> .o). The problem comes at link stage in ld.
> 
> m68k-atari-mint-ld: BFD 2.16.1 internal error, aborting at
> ../../binutils-2.16.1-new/bfd/aoutx.h line 5057 in
> aout_link_input_section_std
> 
> The part of aoutx.h file related to this:
> 
> --8<--8<--8<--
>   if (r != bfd_reloc_ok)
>   {
>     switch (r)
>     {
>       default:
>       case bfd_reloc_outofrange:
>         abort (); /* this is line 5057 that abort linking */
>       case bfd_reloc_overflow:
> --8<--8<--8<--
> 
> The r variable is setup at various stages before this line, so this is a
> problem with relocation stuff in prg-mint.c.
> 

Is there a special debug version of ld (or binutils) that spits out a
lot of variables and printfs?  Or I guess we should use gdb to debug it.

Thanks,
Mark


