public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
  • * [U-Boot-Users] [PPCBoot-users] Using gcc-3.4 to compile u-boo t on powerpc
    @ 2003-06-24  0:08 ` Vuong My-Hong
      2003-06-26  2:03   ` Murray Jensen
      0 siblings, 1 reply; 3+ messages in thread
    From: Vuong My-Hong @ 2003-06-24  0:08 UTC (permalink / raw)
      To: u-boot
    
    Hi Murray,
    
    Is there a similar fix for gcc 3.0.4? 
    
    Thanks, My Hong
    
    ------------------------------------------------------------------
    Acoustic Mine Imaging
    Thales Underwater Systems
    274 Victoria Road
    Rydalmere NSW 2116
    +61 2 9848 3872
    +61404 483 823
    My-Hong.Vuong at au.thalesgroup.com
    ------------------------------------------------------------------
    
    >>> Murray Jensen 06/23/03 12:06pm >>>
    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:
    
    --- linux.h     2003/06/13 16:41:53     1.3
    +++ linux.h     2003/06/20 01:28:53
    @@ -84,7 +84,8 @@
     #define TARGET_64BIT 0
       
     /* We don't need to generate entries in .fixup.  */
    -#undef RELOCATABLE_NEEDS_FIXUP
    +/* well I do need them! */
    +#define RELOCATABLE_NEEDS_FIXUP
      
     #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
    
    Hope this helps someone. Cheers!
            Murray...
    --
    Murray Jensen, CSIRO Manufacturing & Infra. Tech.      Phone: +61 3 9662
    7763
    Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662
    7853
    Internet: Murray.Jensen at csiro.au 
    
    Hymod project: http://www.msa.cmst.csiro.au/projects/Hymod/ 
    
    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 
    https://lists.sourceforge.net/lists/listinfo/ppcboot-users 
    
    
    
    -------------------------------------------------------
    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 
    _______________________________________________
    U-Boot-Users mailing list
    U-Boot-Users at lists.sourceforge.net 
    https://lists.sourceforge.net/lists/listinfo/u-boot-users
    
    ^ permalink raw reply	[flat|nested] 3+ messages in thread

  • end of thread, other threads:[~2003-06-26  2:03 UTC | newest]
    
    Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <My-Hong.Vuong@au.thalesgroup.com>
         [not found] ` <sdff7591.074@au.thalesgroup.com>
    2002-12-17  9:05   ` [U-Boot-Users] booting linux from u-boot - help! Murray Jensen
    2003-06-24  0:08 ` [U-Boot-Users] [PPCBoot-users] Using gcc-3.4 to compile u-boo t on powerpc Vuong My-Hong
    2003-06-26  2:03   ` Murray Jensen
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox