From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29287 invoked by alias); 3 Jul 2019 15:23:26 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 29278 invoked by uid 89); 3 Jul 2019 15:23:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 spammy= X-Spam-Status: No, score=-10.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-HELO: mail-vs1-f68.google.com Received: from mail-vs1-f68.google.com (HELO mail-vs1-f68.google.com) (209.85.217.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 03 Jul 2019 15:23:24 +0000 Received: by mail-vs1-f68.google.com with SMTP id m8so103380vsj.0 for ; Wed, 03 Jul 2019 08:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3g+metp+HJEsCeKN69BM8vDjEOPhIWNkPD+YmeVXDBk=; b=NS2YEvc5xukQEY2bzI7DtXg0N6ui0xc6CIaU3kOF81QMj6eDJ6w2e7SoeE4G+vjzn8 cKx3xS0I/X6c478bPS5g3t0WXCpOaYbfhrEf/gYdsZ4JJnYHU+SC1snEfW3JgRw8Js7V gHTXgrptXBQh+fsbAUFoxspf7GCKV8pJOH6fE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3g+metp+HJEsCeKN69BM8vDjEOPhIWNkPD+YmeVXDBk=; b=OsjvLKlBGR59Q+bd86MiWHDiKKQGt9oGzgHQ4ngKfs7Z36lhEEGbAzaL2QDN2UMEhU k1vQHmv1jWDhsbZEsgBy9ie36ZG4Bsq2A4wsY1WiAEu2CUKnKFn87rSCOwrAtC9EEPGt ualGbTrNERDN/EQczEhNksl7ewE6XmugZ7MSjlcEk7HGlQou2AJWZ2g4VDe5rL0dczLM NXpJ01kbA3RDnKx/0dRYwdnq2D4c4APQvHca7RQguWPOD0B5oluI5I/25aKv1COQV20e 9jaANYiB0FWYChEAmyh9R3fcCRnsHPYwVjr2W8BkYSfY27X3mHnRQHn1ffVXkqAfp15S aY5w== X-Gm-Message-State: APjAAAWePOYyz77geSOqZlAfGZ+3/oOYhICJgea7NermMhGwtygCqPlX FuA1UMxnCAWQnk6reiqle7iFeUt6XFjW2GYXvL99FA== X-Google-Smtp-Source: APXvYqxWhgmHSQ/JbCBfuUuQ0RiT+50MQ+P2zs29PXSigoQC65WuxHwiirKMmRZ1NqG45gVPbduXVhmb8I6Mn/uJrYU= X-Received: by 2002:a67:e90c:: with SMTP id c12mr17693073vso.97.1562167402519; Wed, 03 Jul 2019 08:23:22 -0700 (PDT) MIME-Version: 1.0 References: <1560902643-20602-1-git-send-email-mark@klomp.org> <16d89e8e2447abcb8fa5d626ff88534f1d28a08a.camel@klomp.org> In-Reply-To: <16d89e8e2447abcb8fa5d626ff88534f1d28a08a.camel@klomp.org> From: Lei Zhang Date: Wed, 03 Jul 2019 15:23:00 -0000 Message-ID: Subject: Re: [PATCH] libelf: Fix some 32bit offset/size issues that break updating 4G+ files. To: Mark Wielaard Cc: elfutils-devel@sourceware.org, fche@redhat.com, mcermak@redhat.com, Dirk Pranke , Thomas Anderson Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-q3/txt/msg00005.txt.bz2 On Wed, Jul 3, 2019 at 7:53 AM Mark Wielaard wrote: > Thanks for the file, it is indeed pretty big :) > But I am not able to replicate the issue with elfutils from git trunk. > commit 31c8b3f098b0654db8f573b2a15d5b6d07d4d3b0 > > And both the produced chrome_elfutil_test.stripped and > chrome_elfutil_test.debug files seem valid ELF files. I figured out the problem on my side. The strip binary dynamically linked to /usr/lib/x86_64-linux-gnu/libelf.so.1 and friends. Once I set LD_LIBRARY_PATH, I got the expected output. > But you might not be using the upstream build system, and you might use > different flags to call it. So, two questions. How did you build your > eu-strip binary? And how do you invoke it? I'm building at the same commit on 64-bit Linux: git clone git://sourceware.org/git/elfutils.git cd elfutils autoreconf -i -f ./configure --enable-maintainer-mode make make check cp ./src/strip /path/to/chrome/src/buildtools/third_party/eu-strip/bin/eu-strip Then I did the build on the Chromium side, which essentially runs: strip -o chrome.stripped -f chrome.debug chrome