This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Fix for PR gdb/16818 (make -Wl,--dynamic-list work again)
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 12 Apr 2016 16:18:04 +0100
- Subject: [PATCH 0/2] Fix for PR gdb/16818 (make -Wl,--dynamic-list work again)
- Authentication-results: sourceware.org; auth=none
GDB's use of --dynamic-list to only export the proc-service symbols is
broken due to Python's "python-config --ldflags" saying we should link
with -export-dynamic, causing gdb to export _all_ its extern symbols
anyway.
Having GDB export all its symbols leads to symbol conflicts issues
such as PR gdb/16818 (GDB crashes when using name for target remote
hostname:port), where a GDB symbol (timeval_add, in libiberty)
unintentionally preempts a symbol in one of the NSS modules glibc
loads into the process.
More info in patch #2.
Regardless, it'd be good to get back GDB's dynamic symbol table size
optimization anyway, for size and load time reasons alone -- this
strips away ~300KB from GDB's binary.
Pedro Alves (2):
Fix "-Wl,--dynamic-list" gdb/configure test
Fix PR gdb/16818, workaround Python's forcing of -export-dynamic
gdb/configure | 19 ++++++++++++++++++-
gdb/configure.ac | 19 ++++++++++++++++++-
2 files changed, 36 insertions(+), 2 deletions(-)
--
2.5.5