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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=fqLYaA5GX8BczWWnEspTuq6BmH4p Bj/diJFbHPMzVCNQJhi7TODcdy7mb28adqj9MVIX7cJ6MCGnfA8NWhsP+gCwjret e5GKcWBbknUPsR/xDpT0mT6ZRRlhO97LjCgCQu5Xy5JcuB2BJuhAGke4HdlyQnex To7k7EviYuZPwHU= 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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=6UiFDIvfzgmPOL7duV7zLwPuLxk=; b=bH 9PQz5jfDO/emEW85YtmZ4GOARu2o5ascd1iMgUcWXQz+dgvO7WdBtPLn4TRmMS0O vx8Aro/Ynu3i96OPWj1Qskza2N5q6753CGN2IJIERJ+M4GuV9vTX5bkhOc3dbTrW XO/Qh7Ao64kk49j1+UwYBkA4mxgHKzwFK6NO944Yw= 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.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=sk:en.wiki, UD:en.wikipedia.org, enwikipediaorg, en.wikipedia.org X-HELO: etr-usa.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Show Symbol Table for OMF (.obj)? From: Warren Young In-Reply-To: <1721a243f6fa4a32877cfdda157ad327@ntmaexbe04.bedford.progress.com> Date: Mon, 16 May 2016 13:42:37 -0600 Message-Id: <89D49ADA-A351-4CF8-98A9-81AD84C53E3A@etr-usa.com> References: <1721a243f6fa4a32877cfdda157ad327 AT ntmaexbe04 DOT bedford DOT progress DOT com> To: The Cygwin Mailing List X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u4GJh0m2009184 On May 16, 2016, at 1:10 PM, Benjamin Cao wrote: > > 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”. nm *is* the right tool, but only for file types it knows about. You should only expect a platform’s native nm to support the native executable types of the platform it runs on. In the case of Cygwin, that’s various flavors of COFF and PE. OMF is an entirely different format. Cygwin’s nm happens to also support ELF for some reason, but that is yet a third object format. Assuming libbfd knows OMF, you could rebuild your own OMF cross-development toolchain. Then *its* nm would be the right tool for the job. https://en.wikipedia.org/wiki/Binary_File_Descriptor_library -- 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