delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/28/15:01:11

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Muhammad Haggag" <mhaggag AT gmail DOT com>
Subject: Building binutils - BFD target names
Date: Sat, 28 Jan 2006 21:53:04 +0200
Lines: 44
Message-ID: <drgi2t$snl$2@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hello,

I'm working on a project that requires the use of some
not-supported-by-default target formats (e.g. aout). So I downloaded the
binutils source from the cygwin installer (binutils-20050610-1), configured
and built it like so:
>/usr/src/binutils-20050610-1/configure --enable-targets=all --enable-shared
>  --with-gnu-as --with-gnu-ld
>make

However, the build failed because a macro was redefined somewhere in
gas/config/obj-coff headers - I removed the redifinition and rebuilt, but it
still failed with:
>obj-coff.o: In function `coff_frob_symbol':
>/usr/src/binutils-20050610-1/gas/config/obj-coff.c:1047: undefined
>reference to `_an_external_name'

So, I tried building it with only the formats I need. Tried:
--enable-targets=aout
--enable-targets=aout32
--enable-targets=elf32
--enable-targets=i386-aout32
--enable-targets=i386-elf32
--enable-targets=pe-i386
--enable-targets=i386-pe

Each and every build fails at [configure-bfd] complaining about the target
name being invalid - except with i386-aout32, where somewhere during the ld
build it says i386-pc-aout32 is invalid =/

I tried looking in /usr/src/binutils-20050610-1/bfd/config.bfd for the
target names (as the error advised), but I couldn't extract anything
meaningful from there.

So,
- What are the target names, or where do I find a listing?
- Is there a way to build with all formats (workaround for the coff error)?
- Am I doing anything wrong?

Thanks,
Muhammad Haggag





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019