From patchwork Mon May 1 20:20:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dmitry V. Levin" X-Patchwork-Id: 68609 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C97B73858284 for ; Mon, 1 May 2023 20:20:15 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id 596DA3858C74 for ; Mon, 1 May 2023 20:20:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 596DA3858C74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=strace.io Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 450C072C8E4 for ; Mon, 1 May 2023 23:20:08 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 1D1D67CF952; Mon, 1 May 2023 23:20:07 +0300 (IDT) Date: Mon, 1 May 2023 23:20:07 +0300 From: "Dmitry V. Levin" To: libabigail@sourceware.org Subject: [PATCH] elf-helpers: make sure config.h is included first Message-ID: <20230501202007.GA30201@altlinux.org> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" Before this change, verify-elf used to complain on x86 and armv7: verify-elf: ERROR: ./usr/lib/libabigail.so.2.0.0: uses non-LFS functions: open Include config.h in abg-elf-helpers.cc before other headers so that AC_SYS_LARGEFILE applies to this file. This fully enables LFS in those of 32-bit systems that do not enable it by default. * src/abg-elf-helpers.cc: Include "config.h" first. Fixes: 7bd69830520f ("Make Front Ends first class citizens") Signed-off-by: Dmitry V. Levin --- src/abg-elf-helpers.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/abg-elf-helpers.cc b/src/abg-elf-helpers.cc index d47c1c39..e05dccdc 100644 --- a/src/abg-elf-helpers.cc +++ b/src/abg-elf-helpers.cc @@ -6,6 +6,7 @@ /// @file /// /// This contains the definitions of the ELF utilities for the dwarf reader. +#include "config.h" #include #include #include