From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 9AB51386102B for ; Mon, 17 Aug 2020 18:16:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9AB51386102B Received: by mail-ed1-x52f.google.com with SMTP id cq28so13072761edb.10 for ; Mon, 17 Aug 2020 11:16:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=QBG2t4m7meltMClSirMOLCJH4e9jxSZ2WLZOdXJLDKw=; b=TCkjIhzBStEoIiHasTy70DuvDH9qf2Fty9KBRqUH808HNJaC+ukWDqWKK4FMavaTSF pZ2I7vxMMWYXYphEr5MyBXgmRSKoVSKEUb4Mrw7tlKyz0Wd6RpOXasuF846/ahWDCWho 0S2tsGJJtZgxOQhkBZwc20mb01vYmvlbacgLrgCNJ1Rc6/b+5uEz12hXXGX9deQy3J2v aRbrSTn+sVhNbkz1H/xd7RNen0H9bmQkwkcaiKCdw/ksgdoO+z7qJ4m72axGq4k82DgL NgsCNWLOsA6aNEtDr76O0xsk0MtMUZPjzI48w3JFyiJAi5dh4J8BE18X+um0BZZezWp0 D82A== X-Gm-Message-State: AOAM531KzyxSy5Tec8Z9Pjmr4kYp3R29IYjGB4Q07sqEdxD8efl9Hq6a IIt9ejN9hXTnC3auMa4hyc3tLKIXNgM= X-Google-Smtp-Source: ABdhPJxSpEoQPfeIyMBtLSBXT9b6MRYKTDD2SEBRzShriLFTK3HW+uvOgCKn1GWM+jKV4g+ODTfSeA== X-Received: by 2002:a05:6402:c81:: with SMTP id cm1mr15588482edb.256.1597688161572; Mon, 17 Aug 2020 11:16:01 -0700 (PDT) Received: from INFERNUS (ac61.itcomp.pl. [109.196.82.61]) by smtp.gmail.com with ESMTPSA id i14sm14150235edr.15.2020.08.17.11.16.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Aug 2020 11:16:00 -0700 (PDT) Message-ID: Subject: objdump: DWARF error: could not find variable specification at offset ... From: Freddie Chopin To: "binutils@sourceware.org" Date: Mon, 17 Aug 2020 20:15:59 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2020 18:16:04 -0000 Hello! I have multiple embedded projects that - as part of the compilation process - produce also assembly listing with command similar to this one: $ arm-none-eabi-objdump -S --demangle distortosTest.elf > distortosTest.lss This worked flawlessly up to (and including) previous release of binutils. In 2.35 something changed. The assembly listing is still generated and it seems to be correct (I did not check it very thoroughly), the command ends with no fatal errors (it returns "0" to the shell), however I see multiple errors like these: arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 2f9 arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 305 arm-none-eabi-objdump: DWARF error: could not find variable specification at offset 311 ... If I take the .elf file produced by the "new" toolchain (it also includes GCC 10.2) and do the command above but with objdump from the "old" toolchain (binutils 2.34), then there is no error. In a reversed scenario (.elf produced by "old" toolchain, passed to "new" objdump) I see 10x more errors like the ones above. I have no idea what does it mean, whether its a problem or not, what variables are a problem here and how to solve it. Any hints will be appreciated, I probably should provide some more details, but I don't really know where to start... P.S. Please keep me CCed. Regards, FCh