* [PATCH] enable m32r-linux support
@ 2003-12-10 4:03 Kazuhiro Inaoka
2003-12-10 7:19 ` Kazuhiro Inaoka
2003-12-10 8:14 ` Kazuhiro Inaoka
0 siblings, 2 replies; 4+ messages in thread
From: Kazuhiro Inaoka @ 2003-12-10 4:03 UTC (permalink / raw)
To: binutils; +Cc: gdb-patches
[-- 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"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] enable m32r-linux support
2003-12-10 4:03 [PATCH] enable m32r-linux support Kazuhiro Inaoka
@ 2003-12-10 7:19 ` Kazuhiro Inaoka
2003-12-10 8:14 ` Kazuhiro Inaoka
1 sibling, 0 replies; 4+ messages in thread
From: Kazuhiro Inaoka @ 2003-12-10 7:19 UTC (permalink / raw)
To: Kazuhiro Inaoka, binutils; +Cc: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 1533 bytes --]
Hi
I forgot to send a patch file for ld/Makefile.am.
> ld/ChangeLog
>
> 2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
>
> * configure.tgt : enable m32r-linux.
> * Makefile.in : Ditto.
Makefile.in -> Makefile.am
Kazuhiro
----- Original Message -----
From: "Kazuhiro Inaoka" <inaoka.kazuhiro@renesas.com>
To: <binutils@sources.redhat.com>
Cc: <gdb-patches@sources.redhat.com>
Sent: Wednesday, December 10, 2003 1:09 PM
Subject: [PATCH] enable m32r-linux support
> 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: ld.Makefile.am.patch --]
[-- Type: application/octet-stream, Size: 1621 bytes --]
Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.146
diff -c -r1.146 Makefile.am
*** Makefile.am 2 Dec 2003 08:14:35 -0000 1.146
--- Makefile.am 10 Dec 2003 07:13:12 -0000
***************
*** 230,235 ****
--- 230,238 ----
ei386pe_posix.o \
elnk960.o \
em32relf.o \
+ em32rlelf.o \
+ em32relf_linux.o \
+ em32rlelf_linux.o \
em68hc11elf.o \
em68hc11elfb.o \
em68hc12elf.o \
***************
*** 603,608 ****
--- 606,623 ----
em32relf.c: $(srcdir)/emulparams/m32relf.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} m32relf "$(tdir_m32r)"
+ em32rlelf.c: $(srcdir)/emulparams/m32rlelf.sh \
+ $(srcdir)/emulparams/m32rlelf.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} m32rlelf "$(tdir_m32rlelf)"
+ em32relf_linux.c: $(srcdir)/emulparams/m32relf_linux.sh \
+ $(srcdir)/emulparams/m32relf_linux.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} m32relf_linux "$(tdir_m32relf_linux)"
+ em32rlelf_linux.c: $(srcdir)/emulparams/m32rlelf_linux.sh \
+ $(srcdir)/emulparams/m32rlelf_linux.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} m32rlelf_linux "$(tdir_m32rlelf_linux)"
eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] enable m32r-linux support
2003-12-10 4:03 [PATCH] enable m32r-linux support Kazuhiro Inaoka
2003-12-10 7:19 ` Kazuhiro Inaoka
@ 2003-12-10 8:14 ` Kazuhiro Inaoka
2003-12-10 16:21 ` Andrew Cagney
1 sibling, 1 reply; 4+ messages in thread
From: Kazuhiro Inaoka @ 2003-12-10 8:14 UTC (permalink / raw)
To: binutils; +Cc: gdb-patches
Hi
> gdb/ChangeLog
>
> 2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
>
> * configure.tgt : enable m32r-linux.
> * configure.host : Ditto.
Please don't change configure.tgt.
If you change it, it will not be able to build for m32r-linux-gdb.
Kazuhiro
----- Original Message -----
From: "Kazuhiro Inaoka" <inaoka.kazuhiro@renesas.com>
To: <binutils@sources.redhat.com>
Cc: <gdb-patches@sources.redhat.com>
Sent: Wednesday, December 10, 2003 1:09 PM
Subject: [PATCH] enable m32r-linux support
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] enable m32r-linux support
2003-12-10 8:14 ` Kazuhiro Inaoka
@ 2003-12-10 16:21 ` Andrew Cagney
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Cagney @ 2003-12-10 16:21 UTC (permalink / raw)
To: Kazuhiro Inaoka; +Cc: binutils, gdb-patches
> Hi
>
>
>> gdb/ChangeLog
>>
>> 2003-12-10 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com >
>>
>> * configure.tgt : enable m32r-linux.
>> * configure.host : Ditto.
>
> Please don't change configure.tgt.
> If you change it, it will not be able to build for m32r-linux-gdb.
>
> Kazuhiro
Sorry, I'm lost. I guess you're dropping the patch for the moment.
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-10 16:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 4:03 [PATCH] enable m32r-linux support Kazuhiro Inaoka
2003-12-10 7:19 ` Kazuhiro Inaoka
2003-12-10 8:14 ` Kazuhiro Inaoka
2003-12-10 16:21 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox