From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 4EE33385514D for ; Thu, 1 Dec 2022 15:34:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4EE33385514D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x42a.google.com with SMTP id w2so662839pfq.12 for ; Thu, 01 Dec 2022 07:34:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=qcT9oFwsVqakhTWvnb+kryMfZkk02YmQu+S5DRPasxM=; b=DKPD3X4wif6elD1FoLjjPt3zkKdtkqLX856TPKOehr6kwlI2PgVle/ok8X4slccPC1 WtyoCcGptf/dxGwxRU6gIfAUAj2WvSiPOgGkpaFsbJBMUmKPhwRbx9wgonWSMUoNivdp onBwJ89jcXTju/aqXsCcveFxVnV4Rvz6L5WyuPi5Hyf8G+Q+/+Y8c8SQSZjv8ojBdLa9 rIMZfyMYrZflSkbigNC8g14Bd3Svr+uAp+hSPri/uya3dDchTJ1WREZ+vmm6mxQAI0ot weUzvjC4vGgdZKUnt+CfNi5lQdNNTfFKHvACJbXCQlHHSUOJOxmh+WFDv6TM54KRcedC sZ3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=qcT9oFwsVqakhTWvnb+kryMfZkk02YmQu+S5DRPasxM=; b=SYBFoORz3nSqaS+ZkiDaVKVuu2ZJQN4pBJYc8RM2X96ZCnA6msvnW3gRxXZ/z5qTQ3 B2M9Da7iax/8Hdz6mFmfFT2gfVYOPAPIrUFhHyVIHQy4Tz8gCmoEjrET2ed3BNlAZABC /cMFjnME4hhpJIa0cLty2iu71VssFvyKc1BOVhm2AmEYXHwBuqrVnbkrHisc7QXRgcbI piI/agO8swhLkCFi7Ilo9AvzVD3YGwk4ztK3pE3I0Whv/A4gOh0z9GrABOaIWujvgkbU FM7g5KZXf4QaDo4lVaCcq3fuYtQtYWLiVAx1iZ+9mECbYBX/z4g9gtqbrlnBeEz0BSTh WOAg== X-Gm-Message-State: ANoB5plvrK00Mqrv+6RCHBIuSYMUQdI5Gt3UavMjZzOdf/2Qx9z+myA6 R+sllOHsY4J7AiffN53GCkVUO3CsWLk= X-Google-Smtp-Source: AA0mqf7fnifDuwqMGyt4wRY0UqNSdAUfD+QzZSFx52/YXzAQkrK0bDiQlN3JtqzdUe8eAv4ldDvQbg== X-Received: by 2002:aa7:9dc6:0:b0:561:b2ea:bfe9 with SMTP id g6-20020aa79dc6000000b00561b2eabfe9mr49900176pfq.4.1669908892170; Thu, 01 Dec 2022 07:34:52 -0800 (PST) Received: from [192.168.255.10] ([27.38.163.161]) by smtp.gmail.com with ESMTPSA id x22-20020a170902821600b001885041d7b8sm3722447pln.293.2022.12.01.07.34.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Dec 2022 07:34:51 -0800 (PST) Message-ID: Date: Thu, 1 Dec 2022 23:34:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Content-Language: en-US To: elfutils-devel@sourceware.org From: Hengqi Chen Subject: dwarf_nextcu can't handle abbrev offset correctly ? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, I am using pahole (which relies on libelf) to process an elf file ([0]): LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats --btf_base vmlinux adl_pci9111.ko This failed with: die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected got member (0xd)! The .ko contains two CU, readelf says that the abbrev offsets are at 0 and 0x907, but dwarf_nextcu reports that abbrev offsets are both at 0. pahole expects to find DW_TAG_compile_unit, but seams that the wrong abbrev offset causes the failure. [0]: https://gitlab.com/chenhengqi/loong-debug -- Hengqi