X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=uZ2/UM8Fq2xrXygOUuQ1daqnM0KcSWSTKsi7cjNJHewUyMwlLlVV9 y9fm79GPX+6/57OthUODp9hWT6pn0hjoUydp4q5jK8mrN8zNt7WdOGrZa/wkUzcN R61w/Kjymb4jIWVNOfYJFDmCdK6zsI4BXF7HWS/lFXa3uEjtvmjqSI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=sBcCv/dCOGjCEXk1J6rnOjtCZNw=; b=JRqJtu75pN7J0ZMyJPZgKSACCU2q eTfLR/HqEyQ2/vyaLugtBWPYr4D3BapYsNgk/V9z/LuKWnyxDUGqFbxyLIME9XCX +wESVU9jXFLuCavowjEk1zjTe6DHPxnyYKi2tDs6GALgZLDtM8y57dnGIAVxJ2E0 s/e4OB6XDNbvEiw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=cao, Cao, UD:obj, UD:*.obj X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Mark Geisert Subject: Re: Show Symbol Table for OMF (.obj)? Date: Mon, 16 May 2016 19:35:18 +0000 (UTC) Lines: 21 Message-ID: References: <1721a243f6fa4a32877cfdda157ad327 AT ntmaexbe04 DOT bedford DOT progress DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Benjamin Cao writes: > I am curious to know if there is a command that will display a symbol table for *.obj files. It seems as if > commands such as "nm" or "objdump" do not do this. I get "File format not recognized". > > If there is a way to get it to work with nm or objdump, I am all ears. Or if there is a different command to satisfy > this, that would be helpful as well. Both nm and objdump are capable of displaying symbol tables. The error message you're getting means you need to explicitly specify "--target=BFDNAME" with BFDNAME matching the .obj file's format. The formats we typically see are pe-i386 and pei-i386 for x86 object and image, and pe-x86-64 and pei-x86-64 for x86_64 object and image, respectively. 'nm --help' and 'objdump --help' show the supported targets. ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple