Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3807314pxb; Sun, 24 Oct 2021 11:33:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzhiFQtC2HBECQ+eO38GSvJNxLRVvgWKZaQym8225kDpUDAUIB7LltN9Y+vPdlHFatneBV X-Received: by 2002:a17:907:3f8a:: with SMTP id hr10mr128593ejc.373.1635100425856; Sun, 24 Oct 2021 11:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635100425; cv=none; d=google.com; s=arc-20160816; b=i/OFBf4gPsn5Xh/N7cRD4r+kU3jVxvJ0OnwXxGtSOVDKXMB0iZO6ijBfOMoWepXX2m L1QuAmBlNZRTDuCFK4lUCknDHqKOJYrMREiXBi4pxPhFTpyolFaW/vueUH8k7BtEAOeU iAF0DkruyXIpF1sqcq+06Ree3tON+En5VGcssZud12an7I/L1WJ0HjSX0seNfs1VyDdH jYTw24DkyZBZL9P5uPbyCXb0E2cBjojzN8HoGjPesNlABIE6YfE2yW2I6UlVvJ/r7ytD FLQkfp9LmSlwjK41DqLuJY+aL34Aazorz+UQNbaivk+PKWTe21GB9Ntj7niH6j0T2hgd Oa2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=kHtJLapBKvIj9iQkHyruElX5mMdvn2N3gxSrFaMdF7o=; b=MRYHI4+7EnSN1jlEEuxtSvwPNr4scxYA2UPUjBGejADK2wSTQsPTTfOJ1FGgJBHqWT Nd4y4oguEmO3/3r6boxiMsrGnCAyyROOjRVhqek5Fa3QVU8/KyH2C2ms7SwPWW5c9rSr fF4pPXw6PZ+qI9Z6OjugYlUVDMwwqAf8VNBMoo5ldl5oNpMzcqv1J8oHKuM7egaunZnG t8hts1r5YQ8YYbLV+QN+d+3wmasql1I+F1er3kQkENCLMLI6jfJua3rWCwJ0aTnLWNLc q3NucRPZbxNT3vLnBa0zIotvL5fA/26FJM6l7ZpC+BXqfNhfP0PTXKt9y5ZdcIq55WDg hFeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Z1WpbCSz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz24si2903517ejb.445.2021.10.24.11.33.09; Sun, 24 Oct 2021 11:33:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Z1WpbCSz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbhJXSQz (ORCPT + 99 others); Sun, 24 Oct 2021 14:16:55 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:38311 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbhJXSQy (ORCPT ); Sun, 24 Oct 2021 14:16:54 -0400 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 19OIEHZh010785 for ; Mon, 25 Oct 2021 03:14:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 19OIEHZh010785 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1635099258; bh=kHtJLapBKvIj9iQkHyruElX5mMdvn2N3gxSrFaMdF7o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Z1WpbCSzg9n56nhwK2gTP4gWzrDQ32G/XuNa6UWHXJhh38IZMVt+TauZSLFnoNwyk oMeCYYbd9dr2MBmgimwPd8RwPadEUl3hDfdIb/h1TLlJ4f1yCf+1T6TbpSfqfcMNwk CUCI9axsyhoz3a6mz0KbtaUaV0HcFForMfS/ph0b0bSLvCdkyeDI58uF8NZWWKvS+h DxmA/3i2pWJmq/zj6pNR5uTYia++E1CRoAFshJB5xbkIxkXV5BYu8fb9HTqakUe/OP DIFv8Qo89NMnFfI2WXVAJ+YjJSLqrEnVDy1Xqdae5X1HPz2rEaiqNhuSdbGipDS2XJ ZCqXjfTJHNjPQ== X-Nifty-SrcIP: [209.85.214.174] Received: by mail-pl1-f174.google.com with SMTP id r5so1776816pls.1 for ; Sun, 24 Oct 2021 11:14:18 -0700 (PDT) X-Gm-Message-State: AOAM530E2QbrFiAiJRSUyNMXUMPD08LJPq5NZl7xLSCGRMFJq6dojr+q nmYKidfHv9k6jZ2dyQ8Y9SoRU7OO/kZuhUa4kdE= X-Received: by 2002:a17:90b:4ac1:: with SMTP id mh1mr14876550pjb.144.1635099257239; Sun, 24 Oct 2021 11:14:17 -0700 (PDT) MIME-Version: 1.0 References: <53f767cd-9160-1015-d1b8-0230b5566574@landley.net> In-Reply-To: <53f767cd-9160-1015-d1b8-0230b5566574@landley.net> From: Masahiro Yamada Date: Mon, 25 Oct 2021 03:13:40 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Commit 0d989ac2c90b broke my x86-64 build. To: Rob Landley Cc: "linux-kernel@vger.kernel.org" , Andrii Nakryiko , Josh Poimboeuf Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 24, 2021 at 3:36 PM Rob Landley wrote: > > The attached config built fine before the above commit, doesn't build after. The > commit in question did nothing except remove support for building x86-64 without > libelf. You enable CONFIG_STACK_VALIDATION in your .config file. At least, you observed "warning: Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" in the previous builds. > > It took me a while to notice because the commit ONLY broke x86-64. I can still > build arm (32 and 64 bit), i686, m68k, mips/mipsel, powerpc, s390x, and sh4 > without libelf in my cross compiler. Heck, I can still build i686. The change > seems to have added a unique build dependency to just x86-64. The other architectures are not affected because you cannot enable CONFIG_STACK_VALIDATION. Please note only x86_64 selects HAVE_STACK_VALIDATION. > Rob > > P.S. Why do you need a special library to parse elf anyway? It's a fairly simple > file format, linux has include/linux.elf.h, the toolchain already has an objtool > prefixed for the appropriate cross compiler... You are asking a question about the objtool implementation. CCed Josh Poimboeuf. -- Best Regards Masahiro Yamada