From owner-freebsd-bugs Wed Mar 13 17:40:22 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 63C3237B417 for ; Wed, 13 Mar 2002 17:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2E1e1W78381; Wed, 13 Mar 2002 17:40:01 -0800 (PST) (envelope-from gnats) Received: from useful.dataloss.nl (useful.dataloss.nl [62.250.7.47]) by hub.freebsd.org (Postfix) with SMTP id 10B6C37B400 for ; Wed, 13 Mar 2002 17:37:31 -0800 (PST) Received: (qmail 97408 invoked by uid 1001); 14 Mar 2002 01:37:28 -0000 Message-Id: <20020314013728.97407.qmail@useful.dataloss.nl> Date: 14 Mar 2002 01:37:28 -0000 From: Peter van Dijk Reply-To: Peter van Dijk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: gnu/35878: /usr/bin/strip resets ABI type to FreeBSD Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35878 >Category: gnu >Synopsis: /usr/bin/strip resets ABI type to FreeBSD >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 13 17:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Peter van Dijk >Release: FreeBSD 4.4-RELEASE-p4 i386 >Organization: - >Environment: System: FreeBSD useful.dataloss.nl 4.4-RELEASE-p4 FreeBSD 4.4-RELEASE-p4 #3: Fri Jan 25 01:34:19 CET 2002 root@useful.dataloss.nl:/home/usr2/obj/usr/src/sys/USEFUL i386 >Description: /usr/bin/strip resets the ABI type to FreeBSD when stripping a binary. >How-To-Repeat: (zone2sql is a statically compiled linux binary) bash$ file zone2sql zone2sql: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped bash$ strip zone2sql bash$ file zone2sql zone2sql: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, stripped >Fix: workaround: brandelf -t Linux after stripping. proposed fix: preserve ABI type while stripping. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message