From patchwork Thu Sep 17 13:36:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 40418 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 682423857C71; Thu, 17 Sep 2020 13:38:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682423857C71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1600349916; bh=Gj18yxKnBZrlQPayFJeK3tFvDsDatwpjH0JN7kuNRjA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:Cc:From; b=Fubc3XtVdEm1paNKVwTEokYWAV1c5qdirV8fKCNul6ALsZJ6H2eDgsw/EZ78TOfeQ Cz1CwGZc7qygifJBUp2SzVhJi9/mFRIVLYyVGunOom1psGOU2mMwAOUNBPIK6sBLRA gOIVEqdf3iDB9F5iHI4PKGSbPK7tKyTiq3ZWZBSw= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 5F4583857C71 for ; Thu, 17 Sep 2020 13:37:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5F4583857C71 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-594-x_TE41PNM_aw-9KuWiA2tA-1; Thu, 17 Sep 2020 09:36:54 -0400 X-MC-Unique: x_TE41PNM_aw-9KuWiA2tA-1 Received: by mail-wm1-f69.google.com with SMTP id y18so538862wma.4 for ; Thu, 17 Sep 2020 06:36:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:date:message-id :user-agent:mime-version; bh=Gj18yxKnBZrlQPayFJeK3tFvDsDatwpjH0JN7kuNRjA=; b=IEeZFTgFueDL6CcXqufWi9/xicOj/Zsi5m1Yr8RsjWHheVP/4fJFpYDfHQGwMfSZpD FS26H9TZLXoZ+fvGmdyTE4xEYImnu8md6yKzDbHp3PNygjVSrrzRBCutz5ZiV9b+wnH/ MEU4m4QLY2xploXBo6T2JrIc1+G5470iHI/bGGS7K5dZXdYULRy55Chf6mxpK/MPxzLt kLy54MQcPV4a87kuSjRnP+nZfgczaGTCXrj7/HtnRTi/pGQ3Gi4nGPaa1isClPGArjvO erKFaFFj1qhuVM30ngQXchu8j0tNnxEIkEhJpWfdgHD5RDuFkIsF1r00hcxqUWHyUWep E2NA== X-Gm-Message-State: AOAM530f8NIyTT37O/q02Xgk8brDflspAo+RywXYJ42WEwKX7DFkSqHw 6CwLA/kAiNOhHQWQtCE+E+l8Ggmuw1NLEv1Li8jNBm/oj14SYyLG4dBQIq/GP85JCm6BJK1jwoI tmm8pfJCJKCE9N6fdBDKP X-Received: by 2002:adf:dd49:: with SMTP id u9mr9706123wrm.392.1600349811023; Thu, 17 Sep 2020 06:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRbwsUtVOcbu8Kkx2PAZAbVooE4fGfZHbGVUrFovbbuaoFXKWr6o0dhwsoHgcYBV0337NT5w== X-Received: by 2002:adf:dd49:: with SMTP id u9mr9706077wrm.392.1600349810361; Thu, 17 Sep 2020 06:36:50 -0700 (PDT) Received: from localhost (91-166-131-130.subs.proxad.net. [91.166.131.130]) by smtp.gmail.com with ESMTPSA id h4sm38813520wrm.54.2020.09.17.06.36.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2020 06:36:48 -0700 (PDT) Received: by localhost (Postfix, from userid 1000) id 4FA1B180095F; Thu, 17 Sep 2020 15:36:27 +0200 (CEST) To: Giuliano Procida Subject: [PATCH] Bug 26568 - Union should support more than one anonymous member Organization: Red Hat / France X-Operating-System: Red Hat Enterprise Linux Workstation 7.8 Beta X-URL: http://www.redhat.com Date: Thu, 17 Sep 2020 15:36:27 +0200 Message-ID: <87pn6kr0dg.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, LIKELY_SPAM_BODY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SCC_10_SHORT_WORD_LINES, SCC_20_SHORT_WORD_LINES, SCC_35_SHORT_WORD_LINES, SCC_5_SHORT_WORD_LINES, 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: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Dodji Seketeli via Libabigail From: Dodji Seketeli Reply-To: Dodji Seketeli Cc: libabigail@sourceware.org Errors-To: libabigail-bounces@sourceware.org Sender: "Libabigail" Hello, When building a union type we try to ensure that each member is present only once. This is because the code to build the union is also used to actually update a partially constructed union. To do so, before adding a member to the union, the member is looked up (among the current members) by name to see if it's already present or not. But then for anonymous members, the name of the member is empty. After the first anonymous member is added to the union, subsequent look-ups with an empty name all succeed. So no more than one anonymous member is added to the union. Oops. A way to fix this is to perform the lookup by taking into account the type of the anonymous data member, not its (empty) name. We already do this for anonymous data members of classes/structs. This patch thus uses that type-based anonymous data member lookup for unions. But then now that unions can have several anonymous members, another issue was uncovered. Array types whose elements are of anonymous type can be wrongly considered different because of canonicalization issues. Let's suppose we have these two arrays whose internal pretty representation are: "__anonymous_struct_1__ foo[5]" and "__anonymous_struct_2__ foo[5]" These are arrays of 5 elements of type anonymous struct. Suppose the anonymous structs "__anonymous_struct_1__" and "__anonymous_struct_2__" are structurally equivalent. Because the internal names of these array element types are different, the internal pretty representations of the arrays are different. And thus the canonical types of the two arrays are different. And that's wrong. In this particular case, they should have the same canonical type and thus be considered equivalent. This patch thus teaches 'get_type_name' to make the internal type name of anonymous types of a given kind be the same. Thus, making all arrays of 5 anonymous struct have the same pretty representation: "__anonymous_struct__ foo[5]" This gives the type canonicalizer a chance to detect that those arrays having the same canonical type. These two changes while being seemingly unrelated need to be bundled together to fix a number of issues in the existing test reference outputs because fixing the first one is needed to uncover the later issue. * src/abg-dwarf-reader.cc (add_or_update_union_type): Don't use the empty name of anonymous members in the lookup to ensure that all data members are unique. Rather, use the whole anonymous member itself for the lookup, just like is done to handle anonymous data member in classes/structs. * src/abg-reader.cc (build_union_decl): Likewise. * src/abg-ir.cc (get_generic_anonymous_internal_type_name): Define new static function. (get_type_name): For internal purposes, make the type name of all anonymous types of a given kind to be the same. This allows the internal representation of anonymous types which are based on type names to all be the same, so that they can be compared among themselves during type canonicalization. * tests/data/test-read-dwarf/test-PR26568-{1,2}.c: Source code of binary test input. * tests/data/test-read-dwarf/test-PR26568-{1,2}.o: New binary test input. * tests/data/test-read-dwarf/test-PR26568-{1,2}.o.abi: New reference test ouput. * tests/data/Makefile.am: Add the new test material above to source distribution. * tests/test-read-dwarf.cc (in_out_specs): Add the new binary test input above to this test harness. * tests/data/test-diff-dwarf-abixml/PR25409-librte_bus_dpaa.so.20.0.abi: Adjust. * tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Likewise. * tests/data/test-read-dwarf/PR25007-sdhci.ko.abi: Likewise. Signed-off-by: Dodji Seketeli Reviewed-by: Giuliano Procida --- src/abg-dwarf-reader.cc | 12 +- src/abg-ir.cc | 40 + src/abg-reader.cc | 2 +- tests/data/Makefile.am | 20 +- .../PR25409-librte_bus_dpaa.so.20.0.abi | 1887 +++++----- tests/data/test-read-dwarf/PR22122-libftdc.so.abi | 3979 ++++++++++---------- tests/data/test-read-dwarf/PR25007-sdhci.ko.abi | 1734 ++++----- tests/data/test-read-dwarf/test-PR26568-1.c | 15 + tests/data/test-read-dwarf/test-PR26568-1.o | Bin 0 -> 2864 bytes tests/data/test-read-dwarf/test-PR26568-1.o.abi | 38 + tests/data/test-read-dwarf/test-PR26568-2.c | 13 + tests/data/test-read-dwarf/test-PR26568-2.o | Bin 0 -> 2824 bytes tests/data/test-read-dwarf/test-PR26568-2.o.abi | 33 + tests/test-read-dwarf.cc | 14 + 14 files changed, 3946 insertions(+), 3841 deletions(-) create mode 100644 tests/data/test-read-dwarf/test-PR26568-1.c create mode 100644 tests/data/test-read-dwarf/test-PR26568-1.o create mode 100644 tests/data/test-read-dwarf/test-PR26568-1.o.abi create mode 100644 tests/data/test-read-dwarf/test-PR26568-2.c create mode 100644 tests/data/test-read-dwarf/test-PR26568-2.o create mode 100644 tests/data/test-read-dwarf/test-PR26568-2.o.abi diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc index 7c56bd8..7257052 100644 --- a/src/abg-dwarf-reader.cc +++ b/src/abg-dwarf-reader.cc @@ -14088,7 +14088,11 @@ add_or_update_union_type(read_context& ctxt, location loc; die_loc_and_name(ctxt, &child, loc, n, m); - if (lookup_var_decl_in_scope(n, result)) + // Because we can be updating an existing union, let's + // make sure we don't already have a member of the same + // name. Anonymous member are handled a bit later below + // so let's not consider them here. + if (!n.empty() && lookup_var_decl_in_scope(n, result)) continue; ssize_t offset_in_bits = 0; @@ -14109,6 +14113,12 @@ add_or_update_union_type(read_context& ctxt, die_access_specifier(&child, access); var_decl_sptr dm(new var_decl(n, t, loc, m)); + // If dm is an anonymous data member, let's make sure + // the current union doesn't already have it as a data + // member. + if (n.empty() && result->find_data_member(dm)) + continue; + result->add_data_member(dm, access, /*is_laid_out=*/true, /*is_static=*/false, offset_in_bits); diff --git a/src/abg-ir.cc b/src/abg-ir.cc index dbb4364..2852c09 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -6818,6 +6818,39 @@ interned_string get_type_name(const type_base_sptr& t, bool qualified, bool internal) {return get_type_name(t.get(), qualified, internal);} +/// Return the generic internal name of an anonymous type. +/// +/// For internal purposes, we want to define a generic name for all +/// anonymous types of a certain kind. For instance, all anonymous +/// structs will be have a generic name of "__anonymous_struct__", all +/// anonymous unions will have a generic name of +/// "__anonymous_union__", etc. +/// +/// That generic name can be used as a hash to put all anonymous types +/// of a certain kind in the same hash table bucket, for instance. +static interned_string +get_generic_anonymous_internal_type_name(const decl_base *d) +{ + ABG_ASSERT(d); + + const environment *env = d->get_environment(); + + interned_string result; + if (is_class_type(d)) + result = + env->intern(tools_utils::get_anonymous_struct_internal_name_prefix()); + else if (is_union_type(d)) + result = + env->intern(tools_utils::get_anonymous_union_internal_name_prefix()); + else if (is_enum_type(d)) + result = + env->intern(tools_utils::get_anonymous_enum_internal_name_prefix()); + else + ABG_ASSERT_NOT_REACHED; + + return result; +} + /// Get the name of a given type and return a copy of it. /// /// @param t the type to consider. @@ -6842,6 +6875,13 @@ get_type_name(const type_base* t, bool qualified, bool internal) ABG_ASSERT(fn_type); return fn_type->get_cached_name(internal); } + + // All anonymous types of a given kind get to have the same internal + // name for internal purpose. This to allow them to be compared + // among themselves during type canonicalization. + if (internal && d->get_is_anonymous()) + return get_generic_anonymous_internal_type_name(d); + if (qualified) return d->get_qualified_name(internal); return d->get_name(); diff --git a/src/abg-reader.cc b/src/abg-reader.cc index e72a5de..3157473 100644 --- a/src/abg-reader.cc +++ b/src/abg-reader.cc @@ -4939,7 +4939,7 @@ build_union_decl(read_context& ctxt, if (var_decl_sptr v = build_var_decl(ctxt, p, /*add_to_cur_scope=*/false)) { - if (decl->find_data_member(v->get_name())) + if (decl->find_data_member(v)) { // We are in updating mode and the current // version of this class already has this data diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 7334db2..cb82ff6 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -504,6 +504,12 @@ test-read-dwarf/PR26261/PR26261-exe \ test-read-dwarf/PR26261/PR26261-main.c \ test-read-dwarf/PR26261/PR26261-obja.h \ test-read-dwarf/PR26261/PR26261-objb.h \ +test-read-dwarf/test-PR26568-1.c \ +test-read-dwarf/test-PR26568-2.c \ +test-read-dwarf/test-PR26568-2.o \ +test-read-dwarf/test-PR26568-1.o \ +test-read-dwarf/test-PR26568-1.o.abi \ +test-read-dwarf/test-PR26568-2.o.abi \ \ test-annotate/test0.abi \ test-annotate/test1.abi \ @@ -513,20 +519,20 @@ test-annotate/test4.so.abi \ test-annotate/test5.o.abi \ test-annotate/test6.so.abi \ test-annotate/test7.so.abi \ -test-annotate/test8-qualified-this-pointer.so.abi \ +test-annotate/test8-qualified-this-pointer.so.abi \ test-annotate/test13-pr18894.so.abi \ test-annotate/test14-pr18893.so.abi \ test-annotate/test15-pr18892.so.abi \ test-annotate/test17-pr19027.so.abi \ -test-annotate/test18-pr19037-libvtkRenderingLIC-6.1.so.abi \ +test-annotate/test18-pr19037-libvtkRenderingLIC-6.1.so.abi \ test-annotate/test19-pr19023-libtcmalloc_and_profiler.so.abi \ -test-annotate/test20-pr19025-libvtkParallelCore-6.1.so.abi \ +test-annotate/test20-pr19025-libvtkParallelCore-6.1.so.abi \ test-annotate/test21-pr19092.so.abi \ test-annotate/libtest23.so.abi \ -test-annotate/libtest24-drop-fns-2.so.abi \ -test-annotate/libtest24-drop-fns.so.abi \ -test-annotate/test-anonymous-members-0.cc \ -test-annotate/test-anonymous-members-0.o \ +test-annotate/libtest24-drop-fns-2.so.abi \ +test-annotate/libtest24-drop-fns.so.abi \ +test-annotate/test-anonymous-members-0.cc \ +test-annotate/test-anonymous-members-0.o \ test-annotate/test-anonymous-members-0.o.abi \ \ test-types-stability/pr19434-elf0 \ diff --git a/tests/data/test-diff-dwarf-abixml/PR25409-librte_bus_dpaa.so.20.0.abi b/tests/data/test-diff-dwarf-abixml/PR25409-librte_bus_dpaa.so.20.0.abi index b613b04..45984d7 100644 --- a/tests/data/test-diff-dwarf-abixml/PR25409-librte_bus_dpaa.so.20.0.abi +++ b/tests/data/test-diff-dwarf-abixml/PR25409-librte_bus_dpaa.so.20.0.abi @@ -1,4 +1,4 @@ - + @@ -562,24 +562,17 @@ - - - - - - - - - - - + - + + + + - + @@ -593,7 +586,15 @@ - + + + + + + + + + @@ -653,7 +654,7 @@ - + @@ -669,7 +670,7 @@ - + @@ -691,7 +692,7 @@ - + @@ -1009,24 +1010,17 @@ - - - - - - - - - - - + + + + - + - + @@ -1049,35 +1043,29 @@ + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + - + @@ -1085,10 +1073,10 @@ - + - + @@ -1096,6 +1084,22 @@ + + + + + + + + + + + + + + + + @@ -1198,7 +1202,7 @@ - + @@ -1224,7 +1228,7 @@ - + @@ -1263,7 +1267,7 @@ - + @@ -1394,7 +1398,7 @@ - + @@ -1416,7 +1420,7 @@ - + @@ -1458,27 +1462,17 @@ - - - - - - - - - - - - - - + + + + - + - + @@ -1486,7 +1480,18 @@ - + + + + + + + + + + + + @@ -1619,7 +1624,7 @@ - + @@ -1644,7 +1649,7 @@ - + @@ -1673,7 +1678,7 @@ - + @@ -1739,7 +1744,7 @@ - + @@ -1989,10 +1994,10 @@ - + - + @@ -2008,10 +2013,10 @@ - + - + @@ -2062,7 +2067,7 @@ - + @@ -2180,7 +2185,7 @@ - + @@ -2326,7 +2331,7 @@ - + @@ -2341,7 +2346,7 @@ - + @@ -2369,7 +2374,7 @@ - + @@ -2399,7 +2404,7 @@ - + @@ -2415,7 +2420,7 @@ - + @@ -2437,7 +2442,7 @@ - + @@ -2595,7 +2600,7 @@ - + @@ -2639,7 +2644,7 @@ - + @@ -2661,7 +2666,7 @@ - + @@ -2701,7 +2706,7 @@ - + @@ -3059,78 +3064,78 @@ - + - + - - - + + + - + - - - - - + + + + + - - - + + + - - + + - + - + - - + + - + - + - + - - + + - + - + - - + + - + - + - + - + - + - + @@ -3139,62 +3144,62 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3203,304 +3208,304 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - + + + + + + + - + - + - - + + - - + + - + - + - + - + - + - + - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + + - + @@ -3515,16 +3520,16 @@ - + - + - + @@ -3536,13 +3541,13 @@ - + - + - + @@ -3563,37 +3568,37 @@ - + - + - + - + - + - + - + - + @@ -3607,7 +3612,7 @@ - + @@ -3621,38 +3626,38 @@ - + - + - + - + - + - + - + - + - + @@ -3673,7 +3678,7 @@ - + @@ -3684,9 +3689,9 @@ - + - + @@ -3710,28 +3715,28 @@ - + - + - + - + - + - + - + @@ -3742,9 +3747,9 @@ - + - + @@ -3759,10 +3764,10 @@ - + - + @@ -3777,22 +3782,22 @@ - + - + - + - + - + - + @@ -3810,70 +3815,62 @@ - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3881,27 +3878,27 @@ - + - + - + - + - + @@ -3919,7 +3916,7 @@ - + @@ -3936,12 +3933,12 @@ - + - + - + @@ -3953,7 +3950,7 @@ - + @@ -3961,21 +3958,21 @@ - + - + - + - + - + - + @@ -3984,15 +3981,15 @@ - + - + - + @@ -4003,7 +4000,7 @@ - + @@ -4012,325 +4009,325 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4338,21 +4335,21 @@ - - - + + + - + - - - + + + - + - + @@ -4364,7 +4361,7 @@ - + @@ -4415,10 +4412,10 @@ - + - + @@ -4430,10 +4427,10 @@ - + - + @@ -4445,16 +4442,16 @@ - + - + - + @@ -4463,9 +4460,9 @@ - + - + @@ -4486,7 +4483,7 @@ - + @@ -4497,9 +4494,9 @@ - + - + @@ -4520,7 +4517,7 @@ - + @@ -4537,7 +4534,7 @@ - + @@ -4548,9 +4545,9 @@ - + - + @@ -4559,13 +4556,13 @@ - - + + - + @@ -4574,55 +4571,55 @@ - - + + - + - - + + - + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -4636,7 +4633,7 @@ - + @@ -4645,27 +4642,27 @@ - + - - - + + + - + - - - - + + + + @@ -4676,20 +4673,20 @@ - + - + - + - - - + + + @@ -4697,11 +4694,11 @@ - - - + + + - + @@ -4716,7 +4713,7 @@ - + @@ -4728,22 +4725,22 @@ - - - - - - + + + + + + - + - - - + + + @@ -4760,9 +4757,9 @@ - - - + + + @@ -4776,9 +4773,9 @@ - - - + + + @@ -4786,9 +4783,9 @@ - - - + + + @@ -4803,7 +4800,7 @@ - + @@ -4816,30 +4813,30 @@ - - + + - + - + - + - + - + - + @@ -4847,41 +4844,33 @@ - - - - - - - - - - - - + + + + - + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -4895,16 +4884,16 @@ - - + + - + - + @@ -4912,16 +4901,16 @@ - - + + - + - + @@ -4933,16 +4922,16 @@ - + - + - + @@ -4950,7 +4939,7 @@ - + @@ -4965,9 +4954,9 @@ - + - + @@ -4976,10 +4965,10 @@ - + - + @@ -4987,49 +4976,49 @@ - + - - + + - + - + - + - + - + - + - + - + - - - + + + - + @@ -5040,166 +5029,166 @@ - + - + - + - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + @@ -5214,399 +5203,399 @@ - + - + - - - + + + + + + + + + - + + + + + - - + - + + + - + - - - - + + - + - - + + + - + + - - - + + - - + + + + - - + + + + - - - - + + + - - - - + + - - - + + - - + + - - + + - - + + - + - + - + - + - - + + + + - - + + + + - + - - - + - - - + + - - + + - - - + + - - + + + - + + + - - + + - - - - + + - - - + + + - - + + + + - - - + + + - - - - + + - - - + + + - - + + - - - - - - - - - - - - + - - + + - - + + - + - - + + - - + + - + - - + + - + - - + + - + - - + + - - + + - - + + - - + + - - + + - + - + - + - - - + + + - + - + - + - + - + - + - + - - + + - + - - + + - - + + - - + + - + - - + + - + - - + + - + - + - - + + diff --git a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi index 4901fc5..ba918b7 100644 --- a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi +++ b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi @@ -293,176 +293,159 @@ - - - - - - - - - - + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + + + - - - + + - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - + - - + + - - + + - + - + - - + + - - - + + + - + - + - + - - + + - + - + - - + + @@ -470,45 +453,45 @@ - + - + - - + + - + - + - + - + - + - + - - - + + + @@ -525,349 +508,349 @@ - - + + - - + + - + - + - + - - + + - - + + - - + + - - + + - + - - - + + + - - - + + + - - + + - - + + - + - - + + - - + + - - + + - - - + + + - - - + + + - - - + + + - - + + - - + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - + + + + - - - + + + - - - - + + + + - - + + - - - - + + + + - - - - + + + + - - - - - - + + + + + + - - - - + + + + - + - + - + - + - + - - + + - - + + - + - - + + - + @@ -875,19 +858,19 @@ - + - + - + - - + + @@ -895,70 +878,70 @@ - + - + - + - + - + - - + + - + - + - - + + - - - - + + + + - - - + + + - + - + - + - - + + @@ -966,19 +949,19 @@ - + - + - - - - + + + + @@ -987,77 +970,77 @@ - - + + - + - - + + - + - + - - + + - + - + - + - + - - + + - - + + - + - + - + @@ -1067,16 +1050,16 @@ - + - - - + + + @@ -1084,38 +1067,38 @@ - - + + - + - - - - + + + + - - + + - + - + @@ -1125,21 +1108,21 @@ - - + + - - + + - + @@ -1147,7 +1130,7 @@ - + @@ -1159,20 +1142,20 @@ - + - - + + - + @@ -1180,46 +1163,46 @@ - + - - + + - - - + + + - - - + + + - - + + - + - + @@ -1228,28 +1211,28 @@ - + - + - + - + - + @@ -1258,89 +1241,89 @@ - + - + - + - + - - - + + + - + - + - + - + - + - + - - + + - - + + - - + + - - + + - - + + @@ -1348,7 +1331,7 @@ - + @@ -1361,14 +1344,14 @@ - + - + @@ -1378,7 +1361,7 @@ - + @@ -1392,12 +1375,12 @@ - + - + @@ -1405,16 +1388,16 @@ - + - - + + - - + + @@ -1422,130 +1405,130 @@ - + - + - + - + - - + + - - + + - + - - + + - + - + - + - - - + + + - - + + - - + + - - - + + + - - + + - + - + - - + + - + - - + + - - + + - + - - + + - - - + + + - - + + - + - + - - - + + + - + - + - - - + + + @@ -1556,10 +1539,10 @@ - + - + @@ -1567,7 +1550,7 @@ - + @@ -1578,13 +1561,13 @@ - + - + @@ -1596,27 +1579,27 @@ - + - + - - + + - + - + - - + + - + @@ -1629,15 +1612,15 @@ - + - + - - + + @@ -1648,142 +1631,142 @@ - - + + - - + + - + - - + + - - - + + + - - + + - - + + - + - + - - - + + + - - + + - - + + - - - + + + - - + + - + - - + + - + - - + + - + - - + + - - + + - + - - + + - + - - + + - - + + - - + + - - - - + + + + - - + + - - + + - - + + @@ -1792,89 +1775,89 @@ - - + + - - + + - + - - + + - + - + - + - + - + - + - + - - - + + + - + - + - - - + + + - + - + - - + + - - + + - - + + - - + + - + @@ -1940,37 +1923,37 @@ - + - + - + - + - + - - + + - + - + @@ -1982,12 +1965,12 @@ - + - - + + @@ -2000,27 +1983,27 @@ - + - + - - + + - - + + - + @@ -2034,43 +2017,43 @@ - + - + - - + + - - + + - - + + - + - - + + - + @@ -2088,29 +2071,29 @@ - + - - + + - - + + - - + + - - + + @@ -2139,23 +2122,23 @@ - + - + - + - - + + - + @@ -2165,26 +2148,26 @@ - + - + - - + + - + @@ -2196,7 +2179,7 @@ - + @@ -2204,7 +2187,7 @@ - + @@ -2218,11 +2201,11 @@ - + - + @@ -2236,16 +2219,16 @@ - + - + - - + + @@ -2253,31 +2236,31 @@ - + - + - + - - + + - - + + @@ -2285,8 +2268,8 @@ - - + + @@ -2295,50 +2278,50 @@ - - + + - - + + - - - + + + - + - + - - + + - - + + - + - - + + - - - + + + @@ -2389,7 +2372,7 @@ - + @@ -2407,7 +2390,7 @@ - + @@ -2733,15 +2716,15 @@ - + - + - + @@ -2804,19 +2787,19 @@ - + - + - + @@ -2964,11 +2947,11 @@ - + - + @@ -2981,26 +2964,26 @@ - - + + - - + + - - + + - - + + @@ -3009,106 +2992,99 @@ - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - - + + + - + @@ -3125,46 +3101,46 @@ - + - + - - + + - - + + - + - - + + - - + + - - + + @@ -3173,56 +3149,56 @@ - + - - + + - - + + - - + + - - + + - + - + - + - + @@ -3230,23 +3206,23 @@ - + - - - + + + - + - - + + @@ -3254,9 +3230,9 @@ - - - + + + @@ -3264,8 +3240,8 @@ - - + + @@ -3273,9 +3249,9 @@ - - - + + + @@ -3283,17 +3259,17 @@ - - - + + + - - - + + + @@ -3312,15 +3288,15 @@ - - + + - - + + @@ -3328,15 +3304,15 @@ - - + + - - + + @@ -3344,17 +3320,17 @@ - - - + + + - - - + + + @@ -3362,8 +3338,8 @@ - - + + @@ -3371,10 +3347,10 @@ - - - - + + + + @@ -3383,8 +3359,8 @@ - - + + @@ -3394,43 +3370,43 @@ - - + + - - + + - - + + - + - + - - + + @@ -3438,48 +3414,48 @@ - + - - + + - - + + - - + + - + - + - + - + @@ -3487,45 +3463,45 @@ - - + + - + - - + + - - + + - + - - + + - + - + @@ -3539,7 +3515,7 @@ - + @@ -3547,43 +3523,43 @@ - + - + - + - + - + - + - + - + @@ -3591,19 +3567,19 @@ - + - - + + - + @@ -3612,9 +3588,9 @@ - - - + + + @@ -3622,65 +3598,65 @@ - + - + - + - - + + - + - + - + - + - - + + - + - - - + + + @@ -3690,9 +3666,9 @@ - - - + + + @@ -3702,17 +3678,17 @@ - - - + + + - - - + + + @@ -3722,9 +3698,9 @@ - - - + + + @@ -3732,49 +3708,49 @@ - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + @@ -3783,37 +3759,37 @@ - + - - + + - + - - + + - + - - + + - + - + @@ -3821,13 +3797,13 @@ - + - + @@ -3835,19 +3811,19 @@ - - + + - - + + - - + + @@ -3859,9 +3835,9 @@ - - - + + + @@ -3870,113 +3846,108 @@ - + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - + - - - - - - - - - - - - - - - - + + + + + + + + + + + - + - + - - + + - + - + - - + + @@ -3992,8 +3963,8 @@ - - + + @@ -4001,18 +3972,18 @@ - + - - + + - - + + @@ -4026,42 +3997,42 @@ - - - - + + + + - - + + - + - - + + - + - + - + @@ -4071,8 +4042,8 @@ - - + + @@ -4081,19 +4052,19 @@ - + - + - + - - - + + + @@ -4102,8 +4073,8 @@ - - + + @@ -4111,9 +4082,9 @@ - - - + + + @@ -4121,10 +4092,10 @@ - - - - + + + + @@ -4132,8 +4103,8 @@ - - + + @@ -4141,8 +4112,8 @@ - - + + @@ -4153,22 +4124,22 @@ - + - - + + - - - + + + @@ -4177,9 +4148,9 @@ - - - + + + @@ -4188,19 +4159,19 @@ - + - + - - - - + + + + @@ -4209,8 +4180,8 @@ - - + + @@ -4220,34 +4191,34 @@ - - + + - + - - + + - + - + - - + + @@ -4255,14 +4226,14 @@ - + - - + + @@ -4272,41 +4243,41 @@ - + - + - + - - + + - - + + - - - + + + @@ -4315,43 +4286,43 @@ - + - - - + + + - - + + - - + + - + - + @@ -4360,8 +4331,8 @@ - - + + @@ -4374,29 +4345,29 @@ - + - - + + - + - + @@ -4413,9 +4384,9 @@ - - - + + + @@ -4426,27 +4397,27 @@ - - - + + + - - - + + + - - + + - - + + @@ -4454,8 +4425,8 @@ - - + + @@ -4465,10 +4436,10 @@ - - + + - + @@ -4477,8 +4448,8 @@ - - + + @@ -4486,53 +4457,53 @@ - + - + - + - + - - + + - + - - + + - + @@ -4541,18 +4512,18 @@ - - + + - - - - + + + + @@ -4560,10 +4531,10 @@ - - - - + + + + @@ -4571,17 +4542,17 @@ - - + + - + - + @@ -4591,52 +4562,39 @@ - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - - + + + @@ -4650,21 +4608,21 @@ - + - + - + @@ -4672,30 +4630,30 @@ - + - + - + - - - + + + - - + + @@ -4706,26 +4664,26 @@ - - + + - + - + - + @@ -4735,7 +4693,7 @@ - + @@ -4747,70 +4705,70 @@ - + - - + + - - + + - + - - + + - - + + - + - + - - + + - + - + - - + + @@ -4819,45 +4777,45 @@ - + - + - + - + - + - + - + - - + + - + @@ -4879,52 +4837,52 @@ - - + + - + - + - + - + - + - - - + + + - - + + - - + + - + @@ -4935,8 +4893,8 @@ - - + + @@ -4944,8 +4902,8 @@ - - + + @@ -4953,8 +4911,8 @@ - - + + @@ -4962,13 +4920,13 @@ - + - + @@ -4976,7 +4934,7 @@ - + @@ -4984,13 +4942,13 @@ - + - + @@ -4998,32 +4956,32 @@ - - - - + + + + - - - - + + + + - - + + - + @@ -5031,8 +4989,8 @@ - - + + @@ -5047,8 +5005,8 @@ - - + + @@ -5056,8 +5014,8 @@ - - + + @@ -5065,8 +5023,8 @@ - - + + @@ -5074,51 +5032,51 @@ - + - - + + - + - + - + - - + + - - - + + + - + - - + + - - + + @@ -5127,8 +5085,8 @@ - - + + @@ -5136,8 +5094,8 @@ - - + + @@ -5145,16 +5103,16 @@ - - - + + + - - + + @@ -5162,29 +5120,29 @@ - + - + - - - + + + - + - + @@ -5193,8 +5151,8 @@ - - + + @@ -5202,42 +5160,42 @@ - - + + - - - + + + - - - + + + - - - + + + - + - - + + @@ -5247,16 +5205,16 @@ - - + + - - - + + + @@ -5267,20 +5225,20 @@ - - + + - - + + - + @@ -5295,114 +5253,114 @@ - + - + - + - - + + - - + + - - + + - + - + - - + + - + - + - + - + - + - + - - + + - - + + - + @@ -5417,16 +5375,16 @@ - - - + + + - - + + @@ -5437,23 +5395,23 @@ - - - + + + - - - + + + - - - + + + @@ -5461,15 +5419,15 @@ - - - - + + + + - + @@ -5483,18 +5441,18 @@ - + - - + + - - + + @@ -5502,8 +5460,8 @@ - - + + @@ -5519,95 +5477,95 @@ - + - - + + - - + + - - + + - - + + - - + + - + - + - + - + - + - - + + - - + + - + - + @@ -5617,7 +5575,7 @@ - + @@ -5625,61 +5583,61 @@ - + - + - + - + - - + + - + - + - - - + + + - - - + + + - + @@ -5692,24 +5650,24 @@ - + - + - + - + - + @@ -5721,24 +5679,24 @@ - - + + - - + + - - + + @@ -5748,47 +5706,47 @@ - - + + - + - + - + - - + + - - + + - + @@ -5798,19 +5756,19 @@ - - + + - - + + - - - + + + @@ -5820,11 +5778,11 @@ - - + + - - + + @@ -5850,31 +5808,31 @@ - - + + - - + + - - + + - - + + - - + + - - + + @@ -5890,21 +5848,21 @@ - - + + - - + + - - + + - - + + @@ -5919,16 +5877,16 @@ - - - + + + - + @@ -5936,7 +5894,7 @@ - + @@ -5954,7 +5912,7 @@ - + @@ -5963,7 +5921,7 @@ - + @@ -5987,17 +5945,17 @@ - - - + + + - - - + + + @@ -6006,60 +5964,43 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + - + @@ -6067,99 +6008,99 @@ - + - - + + - + - - + + - - + + - - - + + + - - - + + + - - + + - - - + + + - - + + - - + + - - + + - + - + - - + + @@ -6167,14 +6108,14 @@ - + - - + + @@ -6182,14 +6123,14 @@ - + - - + + @@ -6199,26 +6140,26 @@ - + - - + + - - + + - - + + @@ -6227,21 +6168,21 @@ - - - + + + - - + + - + @@ -6257,45 +6198,45 @@ - + - + - - + + - - + + - + - + - + @@ -6303,19 +6244,19 @@ - + - + - + @@ -6323,53 +6264,53 @@ - - + + - - - + + + - - + + - + - + - + - - + + - - + + - + @@ -6384,16 +6325,16 @@ - - + + - - - + + + @@ -6401,25 +6342,25 @@ - + - + - - + + - - + + @@ -6429,7 +6370,7 @@ - + @@ -6474,32 +6415,32 @@ - + - + - - + + - - + + - + - + @@ -6507,15 +6448,15 @@ - - + + - - + + @@ -6527,55 +6468,55 @@ - + - - - + + + - + - - - - + + + + - + - - + + - - + + - - + + - + @@ -6583,42 +6524,42 @@ - + - - - + + + - - + + - + - + - - - + + + - + @@ -6629,15 +6570,15 @@ - - + + - - + + @@ -6648,8 +6589,8 @@ - - + + @@ -6657,9 +6598,9 @@ - - - + + + @@ -6667,9 +6608,9 @@ - - - + + + @@ -6682,10 +6623,10 @@ - - - - + + + + @@ -6693,8 +6634,8 @@ - - + + @@ -6704,15 +6645,15 @@ - - + + - - + + @@ -6750,16 +6691,16 @@ - - + + - - + + @@ -6767,10 +6708,10 @@ - - - - + + + + @@ -6781,7 +6722,7 @@ - + @@ -6791,8 +6732,8 @@ - - + + @@ -6801,9 +6742,9 @@ - + - + @@ -6811,33 +6752,33 @@ - + - - + + - - + + - - + + - - + + @@ -6861,9 +6802,9 @@ - - - + + + @@ -6871,9 +6812,9 @@ - - - + + + @@ -6903,104 +6844,104 @@ - + - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - + + - - - - + + + + - - + + - - + + - - - + + + @@ -7009,25 +6950,25 @@ - + - - + + - - + + - + @@ -7043,14 +6984,14 @@ - - + + - + @@ -7069,7 +7010,7 @@ - + @@ -7077,13 +7018,13 @@ - + - + @@ -7091,16 +7032,16 @@ - - + + - - + + @@ -7108,9 +7049,9 @@ - - - + + + @@ -7118,29 +7059,27 @@ - - + + - - + + - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -7148,12 +7087,12 @@ - + - - + + @@ -7184,44 +7123,44 @@ - - - + + + - + - + - + - - - + + + - + - + - + - + @@ -7230,16 +7169,16 @@ - + - + - - + + @@ -7247,18 +7186,18 @@ - + - + - - - + + + @@ -7278,10 +7217,10 @@ - + - + @@ -7290,28 +7229,28 @@ - - - - + + + + - - - - + + + + - - - - + + + + @@ -7320,9 +7259,9 @@ - - - + + + @@ -7330,10 +7269,10 @@ - - - - + + + + @@ -7341,10 +7280,10 @@ - - - - + + + + @@ -7352,8 +7291,8 @@ - - + + @@ -7363,19 +7302,19 @@ - + - + - - - - + + + + @@ -7384,8 +7323,8 @@ - - + + @@ -7402,8 +7341,8 @@ - - + + @@ -7437,32 +7376,32 @@ - + - + - + - + - - + + @@ -7475,7 +7414,7 @@ - + @@ -7485,8 +7424,8 @@ - - + + @@ -7515,15 +7454,15 @@ - - + + - + @@ -7539,23 +7478,23 @@ - - - + + + - - - + + + - - - + + + @@ -7563,10 +7502,10 @@ - - + + - + @@ -7575,29 +7514,29 @@ - + - - + + - - + + - + @@ -7611,19 +7550,19 @@ - + - + - - + + @@ -7653,7 +7592,7 @@ - + @@ -7668,51 +7607,51 @@ - + - + - + - - + + - - + + - - + + - + @@ -7731,19 +7670,19 @@ - + - + - + @@ -7762,8 +7701,8 @@ - - + + @@ -7789,9 +7728,9 @@ - - - + + + @@ -7799,55 +7738,55 @@ - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - + - - - + + + @@ -7873,54 +7812,54 @@ - + - - + + - - + + - - + + - + - + - - + + - - + + - - + + @@ -7928,25 +7867,25 @@ - - - + + + - - - + + + - - - + + + @@ -7973,44 +7912,44 @@ - + - + - + - + - - - - - - - - - + + + + + + + + + - - - + + + - - + + - + @@ -8020,20 +7959,20 @@ - + - + - + - - + + @@ -8047,20 +7986,20 @@ - + - + - + - + @@ -8073,14 +8012,14 @@ - - + + - + @@ -8096,17 +8035,17 @@ - - - + + + - - - + + + @@ -8119,9 +8058,9 @@ - - - + + + @@ -8134,9 +8073,9 @@ - - - + + + @@ -8150,57 +8089,57 @@ - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + @@ -8208,188 +8147,188 @@ - - + + - + - + - - + + - + - + - - + + - + - + - + - + - - + + - + - - + + - - + + - + - - + + - + - + - - + + - + - + - + - + - - - + + + - + - + - + - + - + - + - - - + + + - + @@ -8408,34 +8347,34 @@ - + - + - - + + - + - + @@ -8446,96 +8385,96 @@ - + - + - + - + - + - + - + - + - - - + + + - + - + - + - + - + - + - - - + + + - + - + - + - - + + - + - - + + @@ -8543,36 +8482,36 @@ - + - + - - - + + + - - + + - + - + - + @@ -8582,7 +8521,7 @@ - + @@ -8593,25 +8532,25 @@ - - - + + + - - - + + + - - - + + + @@ -8622,23 +8561,23 @@ - - - + + + - - - + + + - - - + + + @@ -8653,11 +8592,11 @@ - - + + - - + + @@ -8667,8 +8606,8 @@ - - + + diff --git a/tests/data/test-read-dwarf/PR25007-sdhci.ko.abi b/tests/data/test-read-dwarf/PR25007-sdhci.ko.abi index 5349383..c6f4071 100644 --- a/tests/data/test-read-dwarf/PR25007-sdhci.ko.abi +++ b/tests/data/test-read-dwarf/PR25007-sdhci.ko.abi @@ -768,30 +768,23 @@ - - - - - - - - - - - + - + + + + - - + + - + @@ -801,7 +794,15 @@ - + + + + + + + + + @@ -990,7 +991,7 @@ - + @@ -1506,7 +1507,7 @@ - + @@ -1609,10 +1610,10 @@ - + - + @@ -1630,16 +1631,16 @@ - + - + - + - + @@ -1673,7 +1674,7 @@ - + @@ -1681,7 +1682,7 @@ - + @@ -1948,7 +1949,7 @@ - + @@ -2294,7 +2295,7 @@ - + @@ -2367,7 +2368,7 @@ - + @@ -2375,7 +2376,7 @@ - + @@ -2637,7 +2638,7 @@ - + @@ -2808,7 +2809,7 @@ - + @@ -2940,7 +2941,7 @@ - + @@ -2978,7 +2979,7 @@ - + @@ -3031,102 +3032,39 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + @@ -3145,16 +3083,16 @@ - + - + - + - + @@ -3169,7 +3107,7 @@ - + @@ -3187,27 +3125,27 @@ - + - + - - + + - + - + @@ -3223,80 +3161,80 @@ - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + @@ -3304,7 +3242,7 @@ - + @@ -3313,35 +3251,54 @@ - + - + - + - + - + + + + + + + + + + + + + + + + + + + + - + - + - + @@ -3350,7 +3307,7 @@ - + @@ -3358,10 +3315,10 @@ - + - + @@ -3372,35 +3329,77 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + @@ -3415,13 +3414,13 @@ - + - + - + @@ -3505,28 +3504,28 @@ - + - + - + - + - + - + @@ -3538,16 +3537,16 @@ - + - + - + @@ -3567,25 +3566,25 @@ - + - + - + - + - + @@ -3600,25 +3599,25 @@ - + - - + + - + - - + + - + - + @@ -3626,49 +3625,49 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + @@ -3676,7 +3675,7 @@ - + @@ -3685,73 +3684,73 @@ - + - + - + - + - + - + - + - + - - + + - + - - - + + + - + - - + + - + - - - + + + - + - + - - + + - - + + @@ -3762,37 +3761,37 @@ - + - + - + - + - + - + - + - + - + @@ -3840,19 +3839,19 @@ - + - + - + - + - + @@ -3861,22 +3860,22 @@ - + - + - + - + @@ -3894,28 +3893,28 @@ - + - + - + - + - + - + @@ -3972,13 +3971,13 @@ - + - + - + @@ -4020,10 +4019,10 @@ - + - + @@ -4041,7 +4040,7 @@ - + @@ -4062,7 +4061,7 @@ - + @@ -4077,40 +4076,40 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -4125,7 +4124,7 @@ - + @@ -4134,7 +4133,7 @@ - + @@ -4146,49 +4145,49 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -4203,7 +4202,7 @@ - + @@ -4215,22 +4214,22 @@ - + - + - + - + @@ -4245,16 +4244,16 @@ - + - + - + @@ -4278,16 +4277,16 @@ - + - + - + @@ -4299,7 +4298,7 @@ - + @@ -4311,10 +4310,10 @@ - + - + @@ -4323,39 +4322,39 @@ - + - + - + - + - + - + - - + + - + - + @@ -4363,15 +4362,15 @@ - - + + - + - + - + @@ -4401,25 +4400,25 @@ - + - + - + - + - + - + @@ -4427,7 +4426,7 @@ - + @@ -4510,7 +4509,7 @@ - + @@ -4536,10 +4535,10 @@ - + - + @@ -4547,7 +4546,7 @@ - + @@ -4567,19 +4566,19 @@ - + - + - + - + - + @@ -4623,24 +4622,24 @@ - + - + - + - + - + - + - + @@ -4652,49 +4651,49 @@ - + - + - - + + - + - + - + - + - + - + - + - + @@ -4730,46 +4729,46 @@ - + - + - + - + - - - + + + - + - + - - + + - + - + - + @@ -4783,7 +4782,7 @@ - + @@ -4797,7 +4796,7 @@ - + @@ -4808,7 +4807,7 @@ - + @@ -4816,7 +4815,7 @@ - + @@ -4824,28 +4823,28 @@ - + - + - + - + - + - + - + - + - + @@ -4860,58 +4859,58 @@ - + - + - + - + - + - + - + - + - + - + - + - - + + - + - - + + - + @@ -4926,11 +4925,11 @@ - - - + + + - + @@ -4953,15 +4952,15 @@ - + - + - + @@ -4973,13 +4972,13 @@ - + - + @@ -4994,7 +4993,7 @@ - + @@ -5009,17 +5008,17 @@ - + - + - + - + @@ -5028,18 +5027,18 @@ - + - + - + @@ -5047,10 +5046,10 @@ - + - + @@ -5061,9 +5060,9 @@ - + - + @@ -5093,78 +5092,78 @@ - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + @@ -5176,7 +5175,7 @@ - + @@ -5191,18 +5190,18 @@ - + - + - + - - - + + + @@ -5210,7 +5209,7 @@ - + @@ -5218,60 +5217,60 @@ - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5279,24 +5278,24 @@ - + - + - + - + - + - + @@ -5304,43 +5303,43 @@ - + - + - + - + - + - + - + - + - - + + - + - + - + @@ -5364,12 +5363,12 @@ - + - + - + @@ -5390,9 +5389,9 @@ - + - + @@ -5401,7 +5400,7 @@ - + @@ -5409,35 +5408,35 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -5452,7 +5451,7 @@ - + @@ -5485,19 +5484,19 @@ - + - + - + - + @@ -5512,13 +5511,13 @@ - + - + - + @@ -5539,7 +5538,7 @@ - + @@ -5584,7 +5583,7 @@ - + @@ -5593,13 +5592,13 @@ - + - + @@ -5611,22 +5610,22 @@ - + - + - + - - + + @@ -5639,9 +5638,9 @@ - + - + @@ -5650,7 +5649,7 @@ - + @@ -5661,8 +5660,8 @@ - - + + @@ -5670,7 +5669,7 @@ - + @@ -5704,12 +5703,12 @@ - + - + @@ -5720,49 +5719,49 @@ - + - + - + - + - + - - - - - + + + + + - + - + - + - + - + - + @@ -5777,10 +5776,10 @@ - + - + @@ -5789,32 +5788,32 @@ - + - + - + - + - + - + - + - + @@ -5822,13 +5821,13 @@ - - + + - + - + @@ -5839,57 +5838,57 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + @@ -5897,20 +5896,20 @@ - + - + - + - + - + @@ -5919,33 +5918,33 @@ - + - + - - + + - + - + - + - + - + @@ -5956,7 +5955,7 @@ - + @@ -5964,7 +5963,7 @@ - + @@ -5972,7 +5971,7 @@ - + @@ -5983,16 +5982,16 @@ - - + + - - + + - + @@ -6001,60 +6000,61 @@ - + - + - + - + - + - + - - - - - - - - - - - + - + + + + - + - + - - + + - + + + + + + + + + @@ -6069,12 +6069,12 @@ - + - + - + @@ -6086,25 +6086,25 @@ - + - + - - + + - + - + @@ -6125,13 +6125,13 @@ - + - + - + @@ -6172,7 +6172,7 @@ - + @@ -6180,10 +6180,10 @@ - + - + @@ -6197,7 +6197,7 @@ - + @@ -6214,24 +6214,24 @@ - + - + - + - + - + - + - + @@ -6239,9 +6239,17 @@ - + - + + + + + + + + + @@ -6319,7 +6327,7 @@ - + @@ -6353,7 +6361,7 @@ - + @@ -6362,12 +6370,12 @@ - + - + @@ -6381,7 +6389,7 @@ - + @@ -6641,7 +6649,7 @@ - + @@ -6793,7 +6801,7 @@ - + @@ -6951,10 +6959,10 @@ - + - + @@ -7002,7 +7010,7 @@ - + @@ -7129,7 +7137,7 @@ - + @@ -7145,13 +7153,13 @@ - + - + @@ -7217,7 +7225,7 @@ - + @@ -7244,7 +7252,7 @@ - + @@ -7272,7 +7280,7 @@ - + @@ -7384,10 +7392,10 @@ - + - + @@ -7439,7 +7447,7 @@ - + @@ -7453,7 +7461,7 @@ - + @@ -7580,7 +7588,7 @@ - + @@ -7591,7 +7599,7 @@ - + @@ -7935,7 +7943,7 @@ - + @@ -7950,10 +7958,10 @@ - + - + @@ -8045,19 +8053,19 @@ - + - + - + - + - + @@ -9242,7 +9250,7 @@ - + @@ -9281,23 +9289,23 @@ - - - + + + - - + + - - + + - - + + @@ -9305,22 +9313,22 @@ - + - - + + - + - - + + @@ -9329,11 +9337,11 @@ - + - - - + + + @@ -9380,7 +9388,7 @@ - + @@ -9406,7 +9414,7 @@ - + @@ -9416,32 +9424,32 @@ - + - + - - + + - - - + + + - + @@ -9458,7 +9466,7 @@ - + @@ -9469,13 +9477,13 @@ - + - + - - + + @@ -9484,22 +9492,22 @@ - + - - - + + + - - - + + + @@ -9527,14 +9535,14 @@ - - - + + + - + @@ -9564,7 +9572,7 @@ - + @@ -9583,10 +9591,10 @@ - - - - + + + + @@ -9604,39 +9612,39 @@ - + - - - - - - + + + + + + - + - + - - - - - + + + + + - - - + + + @@ -9649,7 +9657,7 @@ - + @@ -9658,10 +9666,10 @@ - + - + @@ -9670,7 +9678,7 @@ - + @@ -9679,35 +9687,35 @@ - - + + - - - - - + + + + + - - - - + + + + - + - + - - + + @@ -9716,32 +9724,32 @@ - - + + - + - - - - - + + + + + - - + + - - + + - - + + - + @@ -9749,11 +9757,11 @@ - - - + + + - + @@ -9762,8 +9770,8 @@ - - + + @@ -9771,14 +9779,14 @@ - + - + - + @@ -9788,7 +9796,7 @@ - + @@ -9800,30 +9808,30 @@ - - - - + + + + - + - + - + - - + + - - + + - - - - + + + + @@ -9841,7 +9849,7 @@ - + @@ -9849,7 +9857,7 @@ - + @@ -9863,9 +9871,9 @@ - - - + + + @@ -9879,8 +9887,8 @@ - - + + @@ -9896,15 +9904,15 @@ - + - + - + @@ -9939,11 +9947,11 @@ - + - + @@ -10044,8 +10052,8 @@ - - + + @@ -10056,8 +10064,8 @@ - - + + @@ -10146,8 +10154,8 @@ - - + + @@ -10180,14 +10188,14 @@ - + - - + + @@ -10369,7 +10377,7 @@ - + @@ -10379,7 +10387,7 @@ - + @@ -10410,7 +10418,7 @@ - + @@ -10576,10 +10584,10 @@ - + - + @@ -10631,7 +10639,7 @@ - + @@ -10669,22 +10677,22 @@ - + - - + + - + - + @@ -10729,7 +10737,7 @@ - + @@ -10759,8 +10767,8 @@ - - + + @@ -10845,7 +10853,7 @@ - + @@ -10889,13 +10897,13 @@ - - + + - + @@ -10904,7 +10912,7 @@ - + @@ -10915,7 +10923,7 @@ - + @@ -10934,8 +10942,8 @@ - - + + @@ -10973,14 +10981,14 @@ - + - + @@ -11035,7 +11043,7 @@ - + @@ -11081,12 +11089,12 @@ - + - - + + @@ -11113,7 +11121,7 @@ - + @@ -11139,7 +11147,7 @@ - + @@ -11242,7 +11250,7 @@ - + @@ -11319,17 +11327,17 @@ - + - + - + @@ -11447,7 +11455,7 @@ - + diff --git a/tests/data/test-read-dwarf/test-PR26568-1.c b/tests/data/test-read-dwarf/test-PR26568-1.c new file mode 100644 index 0000000..6eec355 --- /dev/null +++ b/tests/data/test-read-dwarf/test-PR26568-1.c @@ -0,0 +1,15 @@ +struct A { + union { + struct { + int x; + }; + struct { + long y; + }; + }; +}; + +void fun(struct A * a) { + a->x = 0; + a->y = 0x0102030405060708ULL; +} diff --git a/tests/data/test-read-dwarf/test-PR26568-1.o b/tests/data/test-read-dwarf/test-PR26568-1.o new file mode 100644 index 0000000000000000000000000000000000000000..9249e16d4d52b4556b1cf071cc504d2a71204619 GIT binary patch literal 2864 zcmbtV&2Jl35TCctADe9KIx)~j;jlIJDv*Y?_8u-Dak z11<=0pddwnR3s!oLU4csHxLI7TtMOg{{VkN&xl(k4luL(p1pqAs8V^7-^~1GelzpF z*6&_@Hl8J6HiJ;F(A{H*75*$mfM zIo*#myv)rp_@;kutqyS{~EQy@X zv=C+9qG^{P{R-%ey^q?QLpIEJ4t-z?k&crr$-ev^EyF<PMp8@r>8L4>X z|Nb}4$x~k#Zm>8?mBZ1KHn@0Hs*gkBu_l}x@(F9Ia+sSM35^3@%9O#Okb+YGc;Qn9 zhsmp(c$ZLHO6Z<~$_~d!tOyE@auCPB6Qq7a>KPzHLlun4>JOMWaPCX|31bcL65IRkiVGzrn)IxV0 zf=zD-?B-|$cHs6MyX`g)y9b`%8KN)Jon|v|-Yfs60Z z_J^TsYB*0 zBEWB>sOhA}?x9P?DEb!xu1%?trpCUEXj=chY)q7V>Yu(=YX5D-)SSfpOMneB5<`tW zKwnz@&qaN?PgI}YwOao+Vw6+%iE1>S5s&dJ2?#0cOZhh9Y5YG0-+l=HuHY+Sz|{*W z0%Tno|ApYsd^-@+1-~W(g_P@;@TaJx?cWb6`$zujH~q_~ hd^(e~rQV~aa6A!<$*iuQ@}}|s5dD8MVaAHe{|}8}$8i7v literal 0 HcmV?d00001 diff --git a/tests/data/test-read-dwarf/test-PR26568-1.o.abi b/tests/data/test-read-dwarf/test-PR26568-1.o.abi new file mode 100644 index 0000000..867fe22 --- /dev/null +++ b/tests/data/test-read-dwarf/test-PR26568-1.o.abi @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/data/test-read-dwarf/test-PR26568-2.c b/tests/data/test-read-dwarf/test-PR26568-2.c new file mode 100644 index 0000000..656e8ee --- /dev/null +++ b/tests/data/test-read-dwarf/test-PR26568-2.c @@ -0,0 +1,13 @@ +union A { + struct { + int x; + }; + struct { + long y; + }; +}; + +void fun(union A * a) { + a->x = 0; + a->y = 0x0102030405060708ULL; +} diff --git a/tests/data/test-read-dwarf/test-PR26568-2.o b/tests/data/test-read-dwarf/test-PR26568-2.o new file mode 100644 index 0000000000000000000000000000000000000000..cc94708c9cb10e2f0f5e51aed7e7a713767caaf8 GIT binary patch literal 2824 zcmbtVQHvW@6h3!mlT3CtF`KB}WqlaI(k^r++wE?Mm9433-4sh%7W$x2)=6@cj3$#Z znXRc(6clk0L_rZnw9p4%efCN4q2P}YU-|=lEBK)2%-owy?oKJ_fw}kG@0{chN+O_GKRy4Hq?F%j|TqV(P`U;xa4eN~h3T zVWxS}e92@L%v%86pvBcn-NdS10Moo=>IRk})FPI0is{CTlPkbgq#6!;c{L`VS*75O zm2X~IrJ(uDG^n-$u=o@PB?g?M;;1aZ1PPJ*NI;SLDvlbQ!I81Qiv=8`*NSJ&AmroF z-apu^ZP)7drqhnO`8Yf-^gR3MN28)?$U5P>cm0O7Yi&7oXWQD`IKRD7+q__%J>VUy z>4q_GUwCodvWMZ3&v$y<=YiM8r5m*SJCl0Nu5DR%532pqkXJjS&f8wK=Y`dQ*K%84 z&-Dh?t~cT1DrFv5J8tMksvU5*V|U(lgDwn4e$S#i0DHT;7p=2c)B2N3!ks-GZxz^k z2f!vJwziZrzQ8ki4sm)&q7%JbEPbNw7P4=lLky>mNX4uC*FR}SJ+*W2bj5pAIXYU> zL>JAX+H^=XVZx|GF0q=aI^<`Igr)=D-W1WHkb+YEc&}4Lhouu}8If}09HzJR#I>UC z#C8!8s7<9#kc>s2w+dz)T&)Yk=0{>k@!Gl5gyuf_VV znAJG4W{Q&$J~WktuKI612Db!GH74r>XMATEx-Fc;AfEeD3;84jhx!Ga)_4p~zz43= z;jN?Iq33r;Xp3~W)e89SIkOwMevi*n2Aad(QDkA$PFl>~ZL}-w}a$ z|F9dlLoN#cpVJ!h>8#{=%5V*#Oz)9clW$U<#|2?(M?J1Ql~3PIx(EN2e_rIrX-;JR zpXSiG)+9t-8fmKU>xib+-^j#7$*211Yo*rTK}?NF%-;prq(wqh-$S&e<-aBJ%X6aq)YoeM zTZmCiStqKIltnZCAOSJU{BnLD@ihL=g6}+m|FPgJZt%z4$6#iac_s3#;H&O`3ZO0> z#Vq$P;jd6hJHJm;&X4{Ek}uDd>QQr3>=n^a`=Vg_e$!t@<C literal 0 HcmV?d00001 diff --git a/tests/data/test-read-dwarf/test-PR26568-2.o.abi b/tests/data/test-read-dwarf/test-PR26568-2.o.abi new file mode 100644 index 0000000..c6eda38 --- /dev/null +++ b/tests/data/test-read-dwarf/test-PR26568-2.o.abi @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test-read-dwarf.cc b/tests/test-read-dwarf.cc index 3f93d6d..c93f176 100644 --- a/tests/test-read-dwarf.cc +++ b/tests/test-read-dwarf.cc @@ -380,6 +380,20 @@ InOutSpec in_out_specs[] = "data/test-read-dwarf/PR26261/PR26261-exe.abi", "output/test-read-dwarf/PR26261/PR26261-exe.abi", }, + { + "data/test-read-dwarf/test-PR26568-1.o", + "", + SEQUENCE_TYPE_ID_STYLE, + "data/test-read-dwarf/test-PR26568-1.o.abi", + "output/test-read-dwarf/test-PR26568-1.o.abi", + }, + { + "data/test-read-dwarf/test-PR26568-2.o", + "", + SEQUENCE_TYPE_ID_STYLE, + "data/test-read-dwarf/test-PR26568-2.o.abi", + "output/test-read-dwarf/test-PR26568-2.o.abi", + }, // This should be the last entry. {NULL, NULL, SEQUENCE_TYPE_ID_STYLE, NULL, NULL} };