[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building for SH5
From: |
Stephen Thomas |
Subject: |
Re: Building for SH5 |
Date: |
Thu, 16 May 2002 11:36:46 +0100 |
Hi Nick,
Thanks for your reply. I tried the fix, & it seems to work OK, but I haven't
tested it much. So we at SuperH would like this fix incorporated please.
Steve T.
----- Original Message -----
From: "Nick Clifton" <address@hidden>
To: <address@hidden>; <address@hidden>;
<address@hidden>; <address@hidden>
Cc: <address@hidden>; <address@hidden>;
<address@hidden>; <address@hidden>
Sent: Wednesday, May 15, 2002 4:12 PM
Subject: Re: Building for SH5
> Hi Stephen,
>
> > are: --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
> > --target=--target=sh64-superh-linux-gnu). But the build fails when
> > trying to link objdump with the following error messages:
> >
> > ../opcodes/.libs/libopcodes.a(sh64-dis.o): In function
> > `sh64_get_contents_type_disasm':
> >
/export/home/linsvr4/thomass/download/binutils/b/opcodes/../../binutils-0205
> > 14/opcodes/sh64-dis.c:481: undefined reference to
`sh64_get_contents_type'
> >
> > The function sh64_get_contents_type is defined in bfd/elf32-sh64.c,
> > but this file does not get compiled. I poked around in the config
> > files a bit, & it looks like the problem might be that there is no
> > 'sh64-*-linux*' case bfd/config.bfd.
>
> This does indeed appear to be the case and the following patch fixes
> the problem.
>
> Do any of the SH maintainers have any objections to my applying it ?
>
> Cheers
> Nick
>
> 2002-05-15 Nick Clifton <address@hidden>
>
> * config.bfd: Add targets for sh64-linux (little endian and
> big endian).
>
> Index: bfd/config.bfd
> ===================================================================
> RCS file: /cvs/src/src/bfd/config.bfd,v
> retrieving revision 1.90
> diff -c -3 -p -w -r1.90 config.bfd
> *** bfd/config.bfd 13 May 2002 18:35:55 -0000 1.90
> --- bfd/config.bfd 15 May 2002 15:08:53 -0000
> *************** case "${targ}" in
> *** 863,868 ****
> --- 863,876 ----
> targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec
bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec"
> targ_underscore=yes
> ;;
> + sh64eb-*-linux*)
> + targ_defvec=bfd_elf32_shblin_vec
> + targ_selvecs="bfd_elf32_shblin_vec bfd_elf32_sh64_vec
bfd_elf64_sh64_vec bfd_elf32_sh_vec"
> + ;;
> + sh64-*-linux*)
> + targ_defvec=bfd_elf32_shlin_vec
> + targ_selvecs="bfd_elf32_shlin_vec bfd_elf32_sh64l_vec
bfd_elf64_sh64l_vec bfd_elf32_shl_vec"
> + ;;
> #endif /* BFD64 */
>
> sh-*-linux*)
>
>