Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp625586pxa; Wed, 19 Aug 2020 10:20:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQa2J4hoodYoI8l93iBt1q0ZwlaOQQWhQGXGmVJGvMe2XrU4bOs9A3zMH99GL+ELI8M3ZJ X-Received: by 2002:a17:906:e251:: with SMTP id gq17mr25562862ejb.445.1597857618249; Wed, 19 Aug 2020 10:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597857618; cv=none; d=google.com; s=arc-20160816; b=T+VR7kgBdZbI8ueX5FynN0JxQsF2Gl8pJNC3YC/G35WZkTlGNUGyOKpJXZqOAVdhk0 bFsZVIu5CfwKs396zIqF7a724y3aO8RP+L2PUSN5ZOXakk8D1XHUQtfvoypdSlVnntzr CvBc1kmPasOteWNyWq8Kr6+hGb9LKX/AkHvOHYlnNPt4nH+61va8shdRq6wGs8C8QvLx EwnPdbiYB44nRCKXDN2Pj7vLjtD5zPXsNO52yrfVfJ4lomGWT535NUd8VvFTgefT4dxA /lySVrd4zF0ZR9k1GxsgnNuF46wO1s07K6AOI044WeN5zrVeVAnm/Fga0dD638HRJUPk yOnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=930Y4wSeq8GeNMEyP0POAmpv0l8BHtYYHZC+5YI/u2M=; b=UOKsiykMlVSsOgJE+a+XkVIKLx4ym1NaYNEZv5mXa43SeZnHty9kg99AMZewXoXGJH RsG0zm1THQ4mbv3frhY60zeKCwKO8I0VpA7gYdn2Y4Dbbx7Od1Czc78p9HBYdWtt2byE K0iknucy+icBKekUfCLZr8anYUq6P8rR2gn199UIEabkl76k2St9xhFUDNi7SquHntpY bf1cryMGx44eajdvPHUGKE60zke+1tvTs8AdIk0BCYWA+8EiWCUNHmPar441XdYUjA69 YDX7EnI4FRJI1zPBcdRaWsKLuhWbeH3/4lxCHrYEt6y5mOWMQTZclnp9jG6oOHaRdfK1 qeoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V6PvtyVp; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn16si12297285edb.550.2020.08.19.10.19.52; Wed, 19 Aug 2020 10:20:18 -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=@redhat.com header.s=mimecast20190719 header.b=V6PvtyVp; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726466AbgHSRTD (ORCPT + 99 others); Wed, 19 Aug 2020 13:19:03 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:32717 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726715AbgHSRS7 (ORCPT ); Wed, 19 Aug 2020 13:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597857538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=930Y4wSeq8GeNMEyP0POAmpv0l8BHtYYHZC+5YI/u2M=; b=V6PvtyVpFzE2+zn0SAuwedugsLjvaAKoSSUcMAIjbQw5s7GKdo47ZAQ7b2xTL/czCB6qOC VcRGk4vZUjHxvkFP12pLj87WQ2lHnoZ46KhIX6CmSfR9wk/JqgN2psEPnrp16oHfAPAPmp CutRse8iraddp018CrDA+q9kdGGOlFw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-240-IQl26hmhP7W4LkffKyg_jQ-1; Wed, 19 Aug 2020 13:18:56 -0400 X-MC-Unique: IQl26hmhP7W4LkffKyg_jQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 00C258030A3; Wed, 19 Aug 2020 17:18:55 +0000 (UTC) Received: from krava (unknown [10.40.192.44]) by smtp.corp.redhat.com (Postfix) with SMTP id 56E3D5D9D5; Wed, 19 Aug 2020 17:18:50 +0000 (UTC) Date: Wed, 19 Aug 2020 19:18:49 +0200 From: Jiri Olsa To: Nick Clifton Cc: Mark Wielaard , Jesper Dangaard Brouer , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , sdf@google.com, andriin@fb.com Subject: Re: Kernel build error on BTFIDS vmlinux Message-ID: <20200819171820.GG177896@krava> References: <20200818105555.51fc6d62@carbon> <20200818091404.GB177896@krava> <20200818105602.GC177896@krava> <20200818134543.GD177896@krava> <20200818183318.2c3fe4a2@carbon> <0ddf7bc5-be05-cc06-05d7-2778c53d023b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ddf7bc5-be05-cc06-05d7-2778c53d023b@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 04:34:30PM +0100, Nick Clifton wrote: > Hi Mark, > > > Adding Nick, the binutils maintainer, so we can make sure > > binutils/elfutils agree on some ELF section compression corner case. > > Thanks for doing this. > > > But it would obviously be better if that wasn't necessary. So I'll try > > to fix libelf so that if it fixes up the alignment when reading the > > compressed data, it also does that when writing out the data again. But > > that would only help for a new version of elfutils. > > > > So it would be nice if binutils ld could also be fixed to write out > > compressed sections with the correct alignment. > > OK, I will look into doing this. > > By any chance is there a small test case that you are using to check > this behaviour ? If so, please may I have a copy for myself ? so when I take empty object and compile like: $ echo 'int main(int argc, char **argv) { return 0; }' | gcc -c -o ex.o -g -gz=zlib -x c - $ ld -o ex --compress-debug-sections=zlib ex.o then there's .debug_info section that shows sh_addralign = 1 after I open the 'ex' obejct with elf_begin and iterate sections according to Mark that should be 8 (on 64 bits) when I change it to 8, the elf_update call won't fail for me on that elf file thanks, jirka