This is the mail archive of the gdb-cvs@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]

src/gdb ChangeLog elfread.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2011-12-19 04:36:30

Modified files:
	gdb            : ChangeLog elfread.c 

Log message:
	try ignoring bad PLT entries in ELF symbol tables
	
	Comment says it all:
	
	/* On ia64-hpux, we have discovered that the system linker
	adds undefined symbols with nonzero addresses that cannot
	be right (their address points inside the code of another
	function in the .text section).  This creates problems
	when trying to determine which symbol corresponds to
	a given address.
	
	We try to detect those buggy symbols by checking which
	section we think they correspond to.  Normally, PLT symbols
	are stored inside their own section, and the typical name
	for that section is ".plt".  So, if there is a ".plt"
	section, and yet the section name of our symbol does not
	start with ".plt", we ignore that symbol.  */
	
	gdb/ChangeLog:
	
	* elfread.c (elf_symtab_read): Ignore undefined symbols with
	nonzero addresses if they do not correspond to a .plt section
	when one is available in the objfile.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13645&r2=1.13646
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/elfread.c.diff?cvsroot=src&r1=1.120&r2=1.121


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