🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52633

Using gcc/gas/ld as a cross compiler across diff-endian machines

#52633
From: Brian Litzinger
Date: Wed, 17 Jun 1992 20:21
17 lines
1162 bytes
I've gotten gcc 2.2.1/gas 1.38.1 hosted on my i386 machine cross compiling
to a 680x0 environment (sun3), however,

In porting ld I run into the following problem:

    the .o files produced by gas (a68) are 680x0-endian, but ld itself
    is compiled by 'gcc -b i386-sysv' (non-680x0 endian) so when it looks
    for the magic number in the .o file is says no deal because
    (0x07010000 & 0xffff) != 0407 (note octal), and I assume things
    will get worse down the line.

So exactly how to I go about producing a ld-cross?

I'm working with binutils-1.9.

Thanks.
brian@apt.bungi.com
Technical Details
Message-ID: <1992Jun17.202134.26579@apt.bungi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!mips!mips!daver!apt!brian

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,65b6d5be38af9138,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-17 09:00:48 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!mips!mips!daver!apt!brian
From: brian@apt.bungi.com (Brian Litzinger)
Newsgroups: gnu.gcc.help
Subject: Using gcc/gas/ld as a cross compiler across diff-endian machines
Message-ID: <1992Jun17.202134.26579@apt.bungi.com>
Date: 17 Jun 92 20:21:34 GMT
Article-I.D.: apt.1992Jun17.202134.26579
Distribution: gnu
Organization: NoOrg
Lines: 17