From: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
To: binutils@sources.redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: [PATCH] enable m32r-linux support
Date: Wed, 10 Dec 2003 04:03:00 -0000 [thread overview]
Message-ID: <003d01c3bed3$59f7e120$2569910a@tool.maec.co.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
Hi
This patch is to enable to build binutils, gdb for m32r-linux.
Please commit and regenerate configure files.
bfd/ChangeLog
2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
* config.bfd : enable m32r-linux.
* configure.in : Ditto.
* targets.c : Add bfd_elf32_m32rle_vec, bfd_elf32_m32rle_vec,
bfd_elf32_m32rlin_vec, bfd_elf32_m32rlelin_vec
gas/ChangeLog
2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
* configure.in : enable m32r-linux.
ld/ChangeLog
2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
* configure.tgt : enable m32r-linux.
* Makefile.in : Ditto.
* emulparams/m32relf_linux.sh : Add new file.
* emulparams/m32rlelf.sh : Ditt.
* emulparams/m32rlelf_linux.sh : Ditto.
gdb/ChangeLog
2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
* configure.tgt : enable m32r-linux.
* configure.host : Ditto.
Kazuhiro Inaoka
[-- Attachment #2: bfd.patch --]
[-- Type: application/octet-stream, Size: 3186 bytes --]
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.149
diff -c -r1.149 config.bfd
*** config.bfd 3 Dec 2003 15:07:15 -0000 1.149
--- config.bfd 10 Dec 2003 03:49:56 -0000
***************
*** 597,602 ****
--- 597,617 ----
targ_defvec=bfd_elf32_iq2000_vec
;;
+ m32r*le-*-linux*)
+ targ_defvec=bfd_elf32_m32rlelin_vec
+ targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
+ ;;
+
+ m32r*-*-linux*)
+ targ_defvec=bfd_elf32_m32rlin_vec
+ targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
+ ;;
+
+ m32r*le-*-*)
+ targ_defvec=bfd_elf32_m32rle_vec
+ targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec"
+ ;;
+
m32r-*-*)
targ_defvec=bfd_elf32_m32r_vec
;;
Index: configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.141
diff -c -r1.141 configure.in
*** configure.in 3 Dec 2003 15:07:15 -0000 1.141
--- configure.in 10 Dec 2003 03:49:56 -0000
***************
*** 631,636 ****
--- 631,639 ----
bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
+ bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
+ bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
+ bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
Index: targets.c
===================================================================
RCS file: /cvs/src/src/bfd/targets.c,v
retrieving revision 1.102
diff -c -r1.102 targets.c
*** targets.c 30 Nov 2003 18:40:41 -0000 1.102
--- targets.c 10 Dec 2003 03:49:56 -0000
***************
*** 542,547 ****
--- 542,550 ----
extern const bfd_target bfd_elf32_littlearm_vec;
extern const bfd_target bfd_elf32_littlemips_vec;
extern const bfd_target bfd_elf32_m32r_vec;
+ extern const bfd_target bfd_elf32_m32rle_vec;
+ extern const bfd_target bfd_elf32_m32rlin_vec;
+ extern const bfd_target bfd_elf32_m32rlelin_vec;
extern const bfd_target bfd_elf32_m68hc11_vec;
extern const bfd_target bfd_elf32_m68hc12_vec;
extern const bfd_target bfd_elf32_m68k_vec;
***************
*** 831,836 ****
--- 834,842 ----
&bfd_elf32_littlearm_vec,
&bfd_elf32_littlemips_vec,
&bfd_elf32_m32r_vec,
+ &bfd_elf32_m32rle_vec,
+ &bfd_elf32_m32rlin_vec,
+ &bfd_elf32_m32rlelin_vec,
&bfd_elf32_m68hc11_vec,
&bfd_elf32_m68hc12_vec,
&bfd_elf32_m68k_vec,
[-- Attachment #3: ld.patch --]
[-- Type: application/octet-stream, Size: 1155 bytes --]
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.141
diff -c -r1.141 configure.tgt
*** configure.tgt 3 Dec 2003 15:07:17 -0000 1.141
--- configure.tgt 10 Dec 2003 03:51:08 -0000
***************
*** 115,121 ****
ia64-*-netbsd*) targ_emul=elf64_ia64 ;;
ia64-*-linux*) targ_emul=elf64_ia64 ;;
ia64-*-aix*) targ_emul=elf64_aix ;;
! m32r-*-*) targ_emul=m32relf ;;
m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
--- 115,124 ----
ia64-*-netbsd*) targ_emul=elf64_ia64 ;;
ia64-*-linux*) targ_emul=elf64_ia64 ;;
ia64-*-aix*) targ_emul=elf64_aix ;;
! m32r*le-*-elf*) targ_emul=m32rlelf ;;
! m32r*-*-elf*) targ_emul=m32relf ;;
! m32r*le-*-linux-gnu*) targ_emul=m32rlelf_linux ;;
! m32r*-*-linux-gnu*) targ_emul=m32relf_linux ;;
m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
[-- Attachment #4: gdb.patch --]
[-- Type: application/octet-stream, Size: 1731 bytes --]
Index: configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.122
diff -c -r1.122 configure.tgt
*** configure.tgt 1 Dec 2003 21:10:46 -0000 1.122
--- configure.tgt 10 Dec 2003 03:52:52 -0000
***************
*** 29,34 ****
--- 29,35 ----
xscale*) gdb_target_cpu=arm ;;
v850*) gdb_target_cpu=v850 ;;
x86_64*) gdb_target_cpu=i386 ;;
+ m32r*) gdb_target_cpu=m32r ;;
*) gdb_target_cpu=$target_cpu ;;
esac
***************
*** 104,110 ****
;;
ia64*-*-*) gdb_target=ia64 ;;
! m32r-*-*) gdb_target=m32r ;;
m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
--- 105,114 ----
;;
ia64*-*-*) gdb_target=ia64 ;;
! m32r-*-elf*) gdb_target=m32r ;;
! m32r-*-linux*) gdb_target=linux
! build_gdbserver=yes
! ;;
m68hc11*-*-*|m6811*-*-*) gdb_target=m68hc11 ;;
Index: configure.host
===================================================================
RCS file: /cvs/src/src/gdb/configure.host,v
retrieving revision 1.61
diff -c -r1.61 configure.host
*** configure.host 1 Dec 2003 21:10:46 -0000 1.61
--- configure.host 10 Dec 2003 03:52:52 -0000
***************
*** 22,27 ****
--- 22,28 ----
sh*) gdb_host_cpu=sh ;;
x86_64*) gdb_host_cpu=i386 ;;
xscale*) gdb_host_cpu=arm ;;
+ m32r*) gdb_host_cpu=m32r ;;
*) gdb_host_cpu=$host_cpu ;;
esac
***************
*** 146,150 ****
--- 147,153 ----
x86_64-*-linux*) gdb_host=x86-64linux ;;
x86_64-*-freebsd*) gdb_host=fbsd64 ;;
x86_64-*-netbsd*) gdb_host=nbsd64 ;;
+
+ m32r*-*-linux*) gdb_host=linux ;;
esac
[-- Attachment #5: gas.patch --]
[-- Type: application/octet-stream, Size: 1174 bytes --]
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.145
diff -c -r1.145 configure.in
*** configure.in 3 Dec 2003 15:07:16 -0000 1.145
--- configure.in 10 Dec 2003 03:50:23 -0000
***************
*** 164,169 ****
--- 164,171 ----
sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
v850*) cpu_type=v850 ;;
xtensa*) cpu_type=xtensa arch=xtensa ;;
+ m32r) cpu_type=m32r target_cpu=m32r endian=big ;;
+ m32rle) cpu_type=m32r target_cpu=m32r endian=little ;;
*) cpu_type=${cpu} ;;
esac
***************
*** 337,343 ****
iq2000-*-elf) fmt=elf bfd_gas=yes ;;
! m32r-*-*) fmt=elf ;;
m68hc11-*-* | m6811-*-*) fmt=elf ;;
m68hc12-*-* | m6812-*-*) fmt=elf ;;
--- 339,346 ----
iq2000-*-elf) fmt=elf bfd_gas=yes ;;
! m32r-*-elf*) fmt=elf ;;
! m32r-*-linux*) fmt=elf em=linux;;
m68hc11-*-* | m6811-*-*) fmt=elf ;;
m68hc12-*-* | m6812-*-*) fmt=elf ;;
[-- Attachment #6: m32relf_linux.sh --]
[-- Type: application/octet-stream, Size: 339 bytes --]
MACHINE=
SCRIPT_NAME=elf
TEMPLATE_NAME=elf32
OUTPUT_FORMAT="elf32-m32r-linux"
TEXT_START_ADDR=0x1000
ARCH=m32r
MACHINE=
MAXPAGESIZE=0x1000
# Hmmm, there's got to be a better way. This sets the stack to the
# top of simulator memory (32MB).
OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = 0x2000000);'
GENERATE_SHLIB_SCRIPT=yes
[-- Attachment #7: m32rlelf.sh --]
[-- Type: application/octet-stream, Size: 64 bytes --]
. ${srcdir}/emulparms/m32relf.sh
OUTPUT_FORMAT="elf32-m32rle"
[-- Attachment #8: m32rlelf_linux.sh --]
[-- Type: application/octet-stream, Size: 77 bytes --]
. ${srcdir}/emulparams/m32relf_linux.sh
OUTPUT_FORMAT="elf32-m32rle-linux"
next reply other threads:[~2003-12-10 4:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 4:03 Kazuhiro Inaoka [this message]
2003-12-10 7:19 ` Kazuhiro Inaoka
2003-12-10 8:14 ` Kazuhiro Inaoka
2003-12-10 16:21 ` Andrew Cagney
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='003d01c3bed3$59f7e120$2569910a@tool.maec.co.jp' \
--to=inaoka.kazuhiro@renesas.com \
--cc=binutils@sources.redhat.com \
--cc=gdb-patches@sources.redhat.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