From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Lungu Date: Tue, 16 Oct 2007 22:13:03 +0300 Subject: [U-Boot-Users] _gp in current u-boot.lds for MIPS ports In-Reply-To: <20071016181916.3E20F242E9@gemini.denx.de> References: <20071016181916.3E20F242E9@gemini.denx.de> Message-ID: <47150D3F.6060001@comsys.ro> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > Dear Shinya Kuribayashi, > > on IRC you asked: > >> In Current u-boot.lds for MIPS ports, _gp is basically equals to __got_start. >> Is equal to _GLOBAL_OFFSET_TABLE_ in current tree. Only if you change it to .=ALIGN(16); gp=.; it's always equal to __got_start. >> Is this intentional, or not? >> If this is intentional for simplification, I'll take into account such original intention. >> It might have been done to simplify the code or shave a few insns, but it had the potential to bite us, and it did exactly that. Cheers, Vlad