NetBSD Problem Report #48329

From martin@duskware.de  Tue Oct 22 07:15:51 2013
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 36C55A5873
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 22 Oct 2013 07:15:51 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: objdump broken on arm
X-Send-Pr-Version: 3.95

>Number:         48329
>Category:       toolchain
>Synopsis:       objdump broken on arm
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 07:20:00 +0000 2013
>Last-Modified:  Wed Oct 23 07:15:01 +0000 2013
>Originator:     Martin Husemann
>Release:        NetBSD 6.1_STABLE
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-porter.duskware.de 6.1_STABLE NetBSD 6.1_STABLE (PORTER) #6: Wed May 29 21:38:20 CEST 2013 martin@night-porter.duskware.de:/usr/src-6/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

build.sh -m shark -O /... -T /usr/tools tools

creates a non-working tools objdump, same with -m eshark.

Same output from the created native eabi objdump.

This test was done with -current sources updated yesterday.

-rwxr-xr-x  2 root  wheel  1049410 Oct 21 21:21 /usr/tools/bin/armv4--netbsdelf-eabi-objdump*
-rwxr-xr-x  2 root  wheel  1049410 Oct 21 21:42 /usr/tools/bin/arm--netbsdelf-objdump*

/hosts/eshark/lib/libc.so.12.187:     file format elf32-littlearm
[..]
00051784 <_setjmp14>:
   51784:       e92d4007        .word   0xe92d4007
   51788:       e2902064        .word   0xe2902064
   5178c:       e3b01000        .word   0xe3b01000
   51790:       e3b00000        .word   0xe3b00000
   51794:       ebff5229        .word   0xebff5229
   51798:       e8bd4007        .word   0xe8bd4007
   5179c:       e59f10bc        .word   0xe59f10bc
   517a0:       e59f2034        .word   0xe59f2034

/hosts/shark/lib/libc.so.12.185:     file format elf32-littlearm
[..]
00051708 <_setjmp14>:
   51708:       e92d4007        .word   0xe92d4007
   5170c:       e2802064        .word   0xe2802064
   51710:       e3a01000        .word   0xe3a01000
   51714:       e3a00000        .word   0xe3a00000
   51718:       ebff507a        .word   0xebff507a
   5171c:       e8bd4007        .word   0xe8bd4007

>How-To-Repeat:
This might be host / host-os-version dependend, others have said their 
amd64/current build of objdump is ok. Maybe the binutils build uses some
/bin/sh (or whatever) features not working on -6?

>Fix:
n/a

>Audit-Trail:
From: Nick Hudson <nick.hudson@gmx.co.uk>
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org, 
 gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/48329: objdump broken on arm
Date: Wed, 23 Oct 2013 08:14:22 +0100

 Don't use -d  (--disassemble) use -D (--disassemble-all) :)

 Something weird is going on in arm-dis.c

 Nick

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.