[Bug build/24805] New: gdb loses exported symbols if CFLAGS contain -fvisibility=hidden

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug build/24805] New: gdb loses exported symbols if CFLAGS contain -fvisibility=hidden

986882896 at qq dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24805

            Bug ID: 24805
           Summary: gdb loses exported symbols if CFLAGS contain
                    -fvisibility=hidden
           Product: gdb
           Version: 8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: nolange79 at gmail dot com
  Target Milestone: ---

gdb/gdbserver need to export several dynamic symbols, those are listed in the
proc-service.list files.
using a compiler(-wrapper) that defaults to -fvisibility=hidden will not
produce those exportable symbols, hence functionality breaks (loading
libthread_db.so.1 fails).

The functions should be declared with '__attribute__ ((visibility
("default")))' to allow compilations with such compilers.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug build/24805] gdb loses exported symbols if CFLAGS contain -fvisibility=hidden

986882896 at qq dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24805

--- Comment #1 from nolange79 at gmail dot com ---
Created attachment 11902
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11902&action=edit
proposed patch against v8.3

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