<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Hi</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman">A previously working project by several students which I
am trying to rebuild consists of a linker script, several object files which I
wish to link, including a c-runtime object file (which is referenced in the
linker script), and the necessary libraries including libc, libgcc etc.<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman">I’m trying to use the RTEM cross tool chain to build this
project.<SPAN style="mso-spacerun: yes"> </SPAN>Several RTEMS include
directories are being searched during the linking stage which are causing
‘multiple definition’ linking messages to be displayed.<SPAN
style="mso-spacerun: yes"> </SPAN>I’m also experiencing several other
problems during the build which I not sure if they are originating from my
project or the way the RTEMS cross tool chain is set up.<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>When I run m68k-rtems-gcc currently, it says that it is reading the spec
file in /opt/rtems/lib/ … and then runs collect2.exe appending a whole string of
include directories including the RTEMS crt0.o. which I think is causing me
problems.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman">What changes do I need to make to the spec files or
anything else for that matter, to make sure that when I use m68k-rtems-gcc, only
the files and include directories that I specify will be searched and used in
the build process?<SPAN style="mso-spacerun: yes"> </SPAN>This way, I can
be sure that any further problems that I might experience will be originating
from my own files only.<SPAN style="mso-spacerun: yes">
</SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Thanks very much</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Fabio</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>University of Cape Town, South Africa</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT> </P></FONT></DIV></BODY></HTML>