From: Aymeric Vincent <Aymeric.Vincent@emi.u-bordeaux.fr>
To: bfd@cygnus.com
Subject: adding a new target (m68k-gnu)
Date: Tue, 27 Oct 1998 04:07:00 -0000 [thread overview]
Message-ID: <199810271207.NAA15953@aliboron.emi.u-bordeaux.fr> (raw)
Hi,
Could you please add a new m68k-gnu target to the binutils? It's
basically an elf target, like i386-gnu (without mach3 stuff) or
m68k-linux.
I give you a very small README I wrote to explain the changes that
have to be done, but there is (at least) *one* thing which is wrong
with it:
I would like to have REGISTER_PREFIX_OPTIONAL set for this target, but
didn't figure out where it had to be put... I just put it in tc-m68k.h
(as described below), but it's of course a stupid solution, which did
the trick for what I had to do...
Thanks a lot, let me know if you need any more information,
Aymeric
--- snip ---
You have to change the following files in order to support the m68k-gnu
target:
- binutils-2.8.1/bfd/config.bfd
Add the following lines to the big case statement:
m68*-*-gnu*)
targ_defvec=bfd_elf32_m68k_vec
# targ_selvecs=m68kmach3_vec
targ_cflags=-DSTAT_FOR_EXEC
;;
- binutils-2.8.1/gas/config/tc-m68k.h
Add this line at the beginning of the file (that's really ugly)
#define REGISTER_PREFIX_OPTIONAL 1
(you can preferably pass a flag to make if you want
.. or use an option of gas everytime you use it...)
- binutils-2.8.1/gas/configure.in
Add this line to the huge case statement
m68k-*-gnu*) fmt=elf ;;
- binutils-2.8.1/ld/configure.tgt
Add this line to the case statement
m68*-*-gnu*) targ_emul=m68kelf ;;
--- snip ---
--
I am a poet:
Linux
Sucks
next reply other threads:[~1998-10-27 4:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-27 4:07 Aymeric Vincent [this message]
1998-12-06 13:53 ` Ian Lance Taylor
1998-12-07 3:23 ` Aymeric Vincent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199810271207.NAA15953@aliboron.emi.u-bordeaux.fr \
--to=aymeric.vincent@emi.u-bordeaux.fr \
--cc=bfd@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).