[U-Boot-Users] [PPCBoot-users] Using gcc-3.4 to compile u-boot on powerpc
Hi All, a small but important thing... I am using the latest gcc from cvs
(3.4 20030608 (experimental)) and if you build the cross compiler for a
powerpc/linux target, it leaves out the "fixup" stuff for the "-mrelocatable"
command line option. If you then want to use that cross compiler to build
"u-boot", it stuffs up with messages from the Assembler that looks something
like this (on certain C files):
... Error: Relocation cannot be done when using -mrelocatable
Since "-mrelocatable" is usually not used for Linux programs, I can't see why
they did this. Rather than have two different cross compilers, one for linux
and one for "other", which you use to compile u-boot, I chose a simple fix -
patch the file "gcc/config/rs6000/linux.h" as follows:
To the extent permitted by law, CSIRO does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained or
that the communication is free of errors, virus, interception or interference.
The information contained in this e-mail may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received this
e-mail in error, please delete it immediately and notify Murray Jensen on
+61 3 9662 7763. Thank you.
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________
PPCBoot-users mailing list
PPCBoot-users at lists.sourceforge.net