[gnu.gcc] 680x0 cross compiler, need help

luis@titan.rice.edu (Luis Soltero) (04/25/89)

I am posting this for a frind.  please e-mail suggestions and comments to
ktm@hbar.rice.edu.  thanks

From ktm@hbar.rice.edu Mon Apr 24 15:55:04 1989
To: luis@titan.rice.edu

Hello:

I am in the midst of trying to develop a cross-compiler for a 680x0
based machine.  I have resolved most difficulties with only minor
changes to tm-m68k.h but one problem has me stumped.  Unfortunately,
unlike most UNIX assemblers and GNU's gas, the assembler I am using
requires that all external references and definitions be made only
once in a file.  I looked and ah-ha there is an ASM_OUTPUT_EXTERNAL
that seemed to be just what I was looking for.  Alas, when it was
defined to produce an external definition for the assembler, a new
external reference was issued for each function in which such a
function call was issued, i.e. there might be 10 external reference
definitions for printf in a single assembler output file.  I was
wondering if anyone out there knew of a workaround in which gcc is
aware of a prior definition of an external?  Thank you in advance.