bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building for SH5


From: Nick Clifton
Subject: Re: Building for SH5
Date: 15 May 2002 16:12:34 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

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*)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]