From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Edwards To: nbecker@fred.net Cc: gcc@gcc.gnu.org Subject: Re: Anyway to get compile flags from objects? Date: Mon, 17 Sep 2001 08:41:00 -0000 Message-id: <20010917113956.A7371@disaster.jaj.com> References: X-SW-Source: 2001-09/msg00657.html On Mon, Sep 17, 2001 at 09:33:00AM -0400, nbecker@fred.net wrote: > Are compilation flags recorded in obj files? Any way to get the info? > If not, it seems to me to be a useful feature. There's a feature request, PR 2678, for this. I worked up an initial patch but nobody was interested in reviewing it. It seems to be of somewhat marginal usefulness without an accompanying tool to extract the flags from the object file, and the libbfd documentation is hellishly outdated. So I stopped. You might follow 2678; if anybody works further on it, there should probably be traffic under that PR. Phil -- Would I had phrases that are not known, utterances that are strange, in new language that has not been used, free from repetition, not an utterance which has grown stale, which men of old have spoken. - anonymous Egyptian scribe, c.1700 BC