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 rs6000-nat.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2013-01-01 08:37:21

Modified files:
	gdb            : rs6000-nat.c 

Log message:
	ppc-aix: .bss relocation problem when overlapping with the .data section
	
	It has been observed that the GNU linker can sometimes improperly
	set the address of the .bss section in such a way that it overlaps
	with the end of the .data section.  This causes problems in GDB
	when trying to print the value of variables located in that section,
	because the loader appears to be gracefully but silently adjusting
	the address of the .bss section to avoid the overlap, thus causing
	a mismatch between the address where GDB thinks it is, vs the address
	where it actually lives.
	
	This patch works around the problem while it a fix in the linker
	is being explored.
	
	gdb/ChangeLog:
	
	* rs6000-nat.c (bss_data_overlap): New function.
	(vmap_symtab): Use it to adjust the .bss section's offset.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/rs6000-nat.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]