This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] Fix for PR gdb/16818 (make -Wl,--dynamic-list work again)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]