This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building binutils - BFD target names


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]