From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 6AC5E3836E63 for ; Wed, 1 Jun 2022 08:42:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AC5E3836E63 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uni-konstanz.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nwJvx-0002Qx-Vs for fortran@gcc.gnu.org; Wed, 01 Jun 2022 10:42:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: fortran@gcc.gnu.org From: Kay Diederichs Subject: is there a way to find out gfortran version and/or options from a given binary? Date: Wed, 1 Jun 2022 10:42:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, FORGED_MUA_MOZILLA, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2022 08:42:33 -0000 Hi, is there any gfortran option and/or version information available from/in a binary? Maybe accessible with objdump or strings? For ifort, we use the -sox option ("This option tells the compiler to save the compilation options and version number in the executable file. ..."). This enables e.g. strings /path/to/binary | grep Intel Or is there a gfortran option that makes this accessible in a binary? Thanks, Kay