From: Wolfgang Denk Date: Mon, 11 Apr 2011 21:39:02 +0200 Subject: [U-Boot] [PATCH] PowerPC: Add support for -msingle-pic-base In-Reply-To: <1291656937-24619-1-git-send-email-Joakim.Tjernlund@transmode.se> References: <1291656937-24619-1-git-send-email-Joakim.Tjernlund@transmode.se> Message-ID: <20110411193902.CB9A4151F83@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 <1291656937-24619-1-git-send-email-Joakim.Tjernlund@transmode.se> you wrote: > -msingle-pic-base is a new gcc option for ppc and > it reduces the size of my u-boot with 6-8 KB. > While at it, add -fno-jump-tables too to save a > few more bytes. > > -msingle-pic-base will be in gcc 4.6, however > backported patches are available at > http://bugs.gentoo.org/show_bug.cgi?id=347281 > > Signed-off-by: Joakim Tjernlund > --- > arch/powerpc/config.mk | 2 ++ > arch/powerpc/cpu/74xx_7xx/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc512x/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc5xx/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc5xxx/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc8220/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc824x/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc8260/start.S | 6 +++++- > arch/powerpc/cpu/mpc83xx/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc85xx/start.S | 10 ++++++++++ > arch/powerpc/cpu/mpc86xx/start.S | 11 ++++++++++- > arch/powerpc/cpu/mpc8xx/start.S | 11 ++++++++++- > arch/powerpc/cpu/ppc4xx/start.S | 22 ++++++++++++++++++++-- > 13 files changed, 127 insertions(+), 12 deletions(-) Applied, 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 Put your Nose to the Grindstone! -- Amalgamated Plastic Surgeons and Toolmakers, Ltd.