This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
How to add a new target in BFD?
- From: Yu Mao <Yu dot Mao at Sun dot COM>
- To: binutils at sources dot redhat dot com
- Cc: Ben Co - Dir/National Projects Manager/SunFed PRC<Benjamin dot Co at Sun dot COM>, "yu.mao >> Yu Mao - TDC/BJ" <Yu dot Mao at Sun dot COM>
- Date: Thu, 08 May 2003 12:17:18 +0800
- Subject: How to add a new target in BFD?
- Reply-to: Yu dot Mao at Sun dot COM
Hi,
I met a problem, When I do "cross-compile binutils" for setup
cross-compilation env for building Mozilla for arca, a
new risc CPU, in a Red hat 7.2 environment.
1> Download binutils and apply the binutils-cross-libpath.path
2> Copied target libs to /ARCA/arca1/lib and /ARCA/arca1/usr/lib
3> Go to binutils path,
vi config.sub and move to 352 line, add followed lines
arca1)
basic_machine=arca1-arca
os=-linux
;;
4> Then run command
env CROSS_LIB_PATH="/ARCA/arca1/lib:/ARCA/arca1/usr/lib"
./configure --target=arca1 --prefix=/ARCA
configure failed with error message
"*** BFD does not support target arca1-arca-linux-gnu.
*** Look in bfd/config.bfd for supported targets.
Configure in /cross_compile/binutils-2.13.90.0.4/build_tmp/opcodes
failed, exiting."
How can I add a new target in BFD? Or is there any workaround?
Any suggestion will be appreciated,
Yu Mao