NetBSD Problem Report #15387

Received: (qmail 17340 invoked from network); 27 Jan 2002 05:19:58 -0000
Message-Id: <>
Date: Sun, 27 Jan 2002 16:19:57 +1100 (EST)
Subject: strip(1) -d doesn't work
X-Send-Pr-Version: 3.95

>Number:         15387
>Category:       toolchain
>Synopsis:       strip(1)'s -d flag doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 27 05:21:00 +0000 2002
>Closed-Date:    Sun Jan 27 05:30:29 +0000 2002
>Last-Modified:  Sun Jan 27 05:30:29 +0000 2002
>Originator:     Luke Mewburn
>Release:        NetBSD 1.5ZA
Luke Mewburn  <>
Luke Mewburn     <>
Wasabi Systems - NetBSD hackers for hire
NetBSD - the world's most portable UNIX-like operating system
System: NetBSD 1.5ZA NetBSD 1.5ZA (ARGO) #0: Tue Jan 22 11:21:31 EST 2002 lukem@hippolyte:/var/scratch/obj.i386/sys/ARGO i386
Architecture: i386
Machine: i386
	strip(1)'s man page and usage documents "-d" as a synonym for "-g"
	to strip debug symbols from a file, but it doesn't work.
	-> cp /usr/mdec/biosboot.sym /tmp

	-> size /tmp/biosboot.sym
	text    data    bss     dec     hex     filename
	40440   4640    14004   59084   e6cc    /tmp/biosboot.sym

	-> ls -la /tmp/biosboot.sym
	-r--r--r--  1 lukem  wheel  213590 Jan 27 16:17 /tmp/biosboot.sym

	-> strip -d /tmp/biosboot.sym
	Usage: strip <switches> in-file(s)
	 The switches are:
	  -I --input-target <bfdname>      Assume input file is in format <bfdname>
	  -O --output-target <bfdname>     Create an output file in format <bfdname>
	  -F --target <bfdname>            Set both input and output format to <bfdname>
	  -p --preserve-dates              Copy modified/access timestamps to the output
	  -R --remove-section <name>       Remove section <name> from the output
	  -s --strip-all                   Remove all symbol and relocation information
	  -g -S -d --strip-debug           Remove all debugging symbols
	     --strip-unneeded              Remove all symbols not needed by relocations
	  -N --strip-symbol <name>         Do not copy symbol <name>
	  -K --keep-symbol <name>          Only copy symbol <name>
	  -x --discard-all                 Remove all non-global symbols
	  -X --discard-locals              Remove any compiler-generated symbols
	  -v --verbose                     List all object files modified
	  -V --version                     Display this program's version number
	  -h --help                        Display this output
	  -o <file>                        Place stripped output into <file>
	strip: supported targets: elf32-i386 a.out-i386-bsd a.out-i386-netbsd pe-i386 pei-i386 coff-i386 a.out-i386-linux elf32-little elf32-big srec symbolsrec tekhex binary ihex netbsd-core
	Exit 1

	-> strip -g /tmp/biosboot.sym

	-> size /tmp/biosboot.sym
	text    data    bss     dec     hex     filename
	40440   4640    14004   59084   e6cc    /tmp/biosboot.sym

	-> ls -la /tmp/biosboot.sym
	-r--r--r--  1 lukem  wheel  58055 Jan 27 16:17 /tmp/biosboot.sym

	left as an exercise for the toolchain gurus
State-Changed-From-To: open->closed 
State-Changed-By: thorpej 
State-Changed-When: Sat Jan 26 21:29:56 PST 2002 

NetBSD Home
NetBSD PR Database Search

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