Subject: CVS commit: src/libexec/ld.elf_so
To: None <source-changes@NetBSD.org>
From: Valeriy E. Ushakov <uwe@netbsd.org>
List: source-changes
Date: 01/11/2006 21:40:12
Module Name:	src
Committed By:	uwe
Date:		Wed Jan 11 21:40:12 UTC 2006

Modified Files:
	src/libexec/ld.elf_so: rtld.c

Log Message:
_GLOBAL_OFFSET_TABLE_ is only used if RTLD_DEBUG, so wrap its
declaration too.

32-bit SuperH can not pretend that _GLOBAL_OFFSET_TABLE_ is a normal
variable, because of the way PIC variable references is generated, but
as compiler arranges for _GLOBAL_OFFSET_TABLE_ address to be in r12
anyway, just use that value by declaring it as a global register
variable.  Makes sh3 compile with RTLD_DEBUG.


To generate a diff of this commit:
cvs rdiff -r1.107 -r1.108 src/libexec/ld.elf_so/rtld.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.