Dear Joakim Tjernlund, In message <1291642606-4290-1-git-send-email-joakim.tjernl...@transmode.se> you wrote: > The -fPIC flag belongs with -mrelocatable, move it there. > Also change -fPIC to -fpic as this produces smaller > binaries. > However, currently -mrelocatable promotes -fpic to -fPIC, a > fix for this is in upcoming gcc 4.6 or you can apply this small > patch to gcc:
Unfortunately this patch breaks a number of boards: Bisecting: 0 revisions left to test after this (roughly 0 steps) [33ee4c92339ee386662c0ee2d221098c5cc8b07e] PowerPC: Move -fPIC flag to common place They fail to build like this: ... Configuring for TQM855L board... /work/tmp-8xx/u-boot.lds:74 cannot move location counter backwards (from 4000800c to 40008000) make: *** [/work/tmp-8xx/u-boot] Error 1 ppc_6xx-size: '/work/tmp-8xx/u-boot': No such file ... Configuring for TQM860L board... /work/tmp-8xx/u-boot.lds:74 cannot move location counter backwards (from 4000802c to 40008000) make: *** [/work/tmp-8xx/u-boot] Error 1 ppc_6xx-size: '/work/tmp-8xx/u-boot': No such file It seems this change increases the code size somehow - which I would not expect from your comment above. Please have a look. 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: w...@denx.de Military secrets are the most fleeting of all. -- Spock, "The Enterprise Incident", stardate 5027.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot