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

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

binutils 2.13.2.1 glitches


From: Marcus Comstedt
Subject: binutils 2.13.2.1 glitches
Date: 16 May 2003 16:08:08 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cauliflower)

Hello.

I just compiled binutils 2.13.2.1 natively on my SEGA Dreamcast
running NetBSD 1.6.  It mostly when smoothly, but I encountered three
problems, described below.  The host triplet is
`shl-unknown-netbsdelf1.6T' (autodetected by configure).


#1.

libobcodes included a disassembler for SH5 64-bit code.  Fair enough,
since the host triplet doesn't specify any particular SH instance.
However, libbfd did _not_ include elf32-sh64-com.c.  Because of this,
the linking of objdump failed becase of the missing symbol
`sh64_get_contents_type'.


#2.

The default emulation for ld became `shelf_nbsd', but it ought to have
been `shlelf_nbsd'.  (Both are supported, it's just the default that
is wrong.)  This seems to be because the architecture is "shl", but
ld/configure.tgt looks for "shle".  config.guess gladly rewrites "sh3el"
to "shl-unknown" for NetBSD machines, so the "shl" is not my fault.
Either config.guess should stop doing the rewrite, or configure.tgt
should recognize "shl" as well.  Since GCC 3.3 does the same rewrite,
it's probably best to fix configure.tgt.  Here is a patch:

---8<---
--- configure.tgt.orig  Fri May 16 15:56:25 2003
+++ configure.tgt       Fri May 16 16:00:40 2003
@@ -287,7 +287,7 @@
                        targ_emul=shelf64_nbsd
                        targ_extra_emuls="shlelf64_nbsd shelf32_nbsd 
shlelf32_nbsd shelf_nbsd shlelf_nbsd"
                        ;;
-sh*le-*-netbsdelf*)
+sh*l*-*-netbsdelf*)
                        targ_emul=shlelf_nbsd
                        targ_extra_emuls=shelf_nbsd
                        ;;
---8<---


#3.

/usr/lib is not added to SEARCH_DIR in the ldscripts (only
"/usr/local/shl-unknown-netbsdelf1.6T/lib" is there).  This seems to
be the same bug as #2 actually; since the default emulation is set to
"shelf_nbsd" the SEARCH_DIR attributes are added to shelf_nbsd.x, but
not to shlelf_nbsd.x which is the one I need to use.


  // Marcus






reply via email to

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