From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinya Kuribayashi Date: Sun, 21 Oct 2007 10:22:44 +0900 Subject: [U-Boot-Users] [PATCH] Fixed the _gp/_G_O_T_ confusion for good In-Reply-To: <470F6339.6070102@comsys.ro> References: <470F6339.6070102@comsys.ro> Message-ID: <471AA9E4.4030504@ruby.dti.ne.jp> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Sorry for late. Vlad Lungu wrote: > $gp is loaded with _gp > the GOT is updated starting from _G_O_T_+8 up to (but not including) > __got_end > __got_start is unused num_got_entries is unused and could be removed > from ld scripts I'll take this fix except for removing __got_start and num_got_entries. I know you want to make it work whether __got_start is out of alignment or not, but that is a little mess. We should fix num_got_entries part instead, and update GOT entries using _GLOBAL_OFFSET_TABLE_ and num_got_entries. This is easily understandable and straight forward :-) I've submitted patches. Plase review. thanks, Shinya