From: Wolfgang Denk Date: Tue, 12 Oct 2010 15:47:19 +0200 Subject: [U-Boot] [PATCH] mpc83xx: Add -fpic relocation support In-Reply-To: References: <1286887081-23172-1-git-send-email-Joakim.Tjernlund@transmode.se> <20101012125218.6ABE21508A2@gemini.denx.de> Message-ID: <20101012134719.5BB9814F310@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joakim Tjernlund, In message you wrote: > > > What happens when one uses this patch in combination with a "standard" > > (i. e. older, unpatched) GCC? > > Nothing, gcc will produce -fPIC relocs and the code will/should just work. OK, so your change means effectively a no-op (except for the moderate size increase in start.S) to most of us? You mentioned -fpic was smaller and faster; do you have any numbers for that (especailly for the faster part) ? > _GLOBAL_OFFSET_TABLE_ is a predefined symbol that the linker defines to > be in the middle of the -fpic GOT table. It marks the end of the GOT table > as far as we are concerned(u-boot does not generate so many relocs that > the > linker needs to use the space above _GLOBAL_OFFSET_TABLE_) > > There is no predefined symbol that marks the start of fpic relocs so > one is added(_GOT_TABLE_) by me to the linker script. OK - can you please include these explanations into the commit message? Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You! What PLANET is this! -- McCoy, "The City on the Edge of Forever", stardate 3134.0