public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/27572] New: Multifile drops DW_TAG_namespace::DW_AT_export_symbols
Date: Fri, 12 Mar 2021 17:13:34 +0000	[thread overview]
Message-ID: <bug-27572-11298@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=27572

            Bug ID: 27572
           Summary: Multifile drops DW_TAG_namespace::DW_AT_export_symbols
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
                CC: dwz at sourceware dot org
  Target Milestone: ---

echo 'inline namespace A { enum E { X0,X1,X2,X3,X4,X5 }; } int main() { return
X0; }'|g++ -Wall -g -x c++ -;cp -p a.out a.out.dup;dwz -m a.out.dwz a.out
a.out.dup;readelf -wi a.out.dwz|grep DW_AT_export_symbols

Actual:
(nothing)

Expected:
    <XX>   DW_AT_export_symbols: 1

Context:
a.out:
 <0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
...
 <1><22>: Abbrev Number: 5 (DW_TAG_imported_unit)
    <23>   DW_AT_import      : <alt 0xb>
 <1><27>: Abbrev Number: 4 (DW_TAG_namespace)
    <28>   DW_AT_name        : A
...
    <2d>   DW_AT_export_symbols: 1
 <2><2e>: Abbrev Number: 0

a.out.dwz:
 <0><b>: Abbrev Number: 4 (DW_TAG_partial_unit)
...
 <1><14>: Abbrev Number: 2 (DW_TAG_namespace)
    <15>   DW_AT_name        : A
...
 <2><18>: Abbrev Number: 6 (DW_TAG_enumeration_type)

This breaks libc++ which is using namespace 'std::__1::' -> 'std::'

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2021-03-12 17:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 17:13 jan.kratochvil at redhat dot com [this message]
2021-03-12 18:02 ` [Bug default/27572] " mark at klomp dot org
2021-03-12 19:02 ` mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-27572-11298@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=dwz@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).