From: Wolfgang Denk Date: Sun, 03 Oct 2010 20:43:06 +0200 Subject: [U-Boot] ARM relocation, question to Heiko In-Reply-To: <4CA8A2E0.7090407@comcast.net> References: <4CA49746.2050301@emk-elektronik.de> <4CA57762.3000201@denx.de> <4CA5821E.3070108@emk-elektronik.de> <4CA5873B.6040907@free.fr> <4CA590E6.6070701@emk-elektronik.de> <4CA59B89.6090207@denx.de> <4CA5BB7A.8050304@emk-elektronik.de> <20101001105506.A64D41539A0@gemini.denx.de> <4CA5BFEF.3090208@emk-elektronik.de> <20101001112125.4076E153A7E@gemini.denx.de> <4CA5C7DE.6010300@emk-elektronik.de> <20101001115908.A34411539A0@gemini.denx.de> <4CA5D26D.2090505@emk-elektronik.de> <4CA5D857.5010009@emk-elektronik.de> <20101001125502.D0B4E1539A0@gemini.denx.de> <4CA6DC16.5040409@emk-elektronik.de> <4CA6E517.9040701@fr <4CA6F687.1080600@denx.de> <4CA75BFB.5030208@comcast.net> <4CA79896.2010606@emk-elektronik.de> <4CA79F96.9060702@free.fr> <4CA7BB24.80201@gmail.com> <4CA82C51.7030300@free.fr> <4CA8426E.4060505@gmail.com> <4CA84598.9070204@free.fr> <4CA8A2E0.7090407@comcast.net> Message-ID: <20101003184306.8D1F91539A0@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 "J. William Campbell", In message <4CA8A2E0.7090407@comcast.net> you wrote: > > executable instructions than programs compiled without these options. > The program will also contain more data space for the got. If -fPIC > actually produced a fully position-independent executable, the extra > overhead would perhaps be tolerable. However, since it does not do this, > (problems with initialized data etc.) there is really no advantage in > using these compile-time options. The executable code and required data > space for the program without these switches will "always" be smaller > and faster than with them. In order to fix the remaining issues even > when using -fPIC, a relocation loop must exist in the u-boot code, > either one global one or a bunch of user written specific ones. Also, If needed, we should have a global one only. > It will be interesting to see what the results of this comparison > are. For me, the no user awareness of relocation is worth a lot, and the > fact that the difference/overhead of relocation will all be in exactly > one place is very appealing. Agreed. 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 Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. - Perlis's Programming Proverb #58, SIGPLAN Notices, Sept. 1982