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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 07:20:00 +0000 2013
>Closed-Date:    Fri Nov 05 16:25:00 +0000 2021
>Last-Modified:  Fri Nov 05 16:25:00 +0000 2021
>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

>Release-Note:

>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

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 05 Nov 2021 16:25:00 +0000
State-Changed-Why:
Works in -current (both for tool objdump and installed version)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.