<html>
<head>
</head>
<body>
<br>
<br>
Angelo Fraietta wrote:<br>
<blockquote type="cite" cite="mid:3EA863BD.2050504@bigpond.com"><br>
Joel Sherrill wrote:<br>
<blockquote type="cite" cite="mid:3EA84973.BC1C6C46@OARcorp.com">
<pre wrap=""><br>Angelo Fraietta wrote:<br></pre>
<blockquote type="cite">
<pre wrap="">Joel Sherrill wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">I am in agreement with Ralf's hunch here. including iostream is bound<br>to be<br>putting some ctor in the system. It has to be doing something that is<br>not<br>legal on a vanilla i386 system. It could be because of inline assembly<br>that<br>is not i386 pure or incorrect code generation for pure i386 that no one<br>has noticed because most people are Pentium and above for Linux, BSD,<br>etc.<br><br>We really need to know that address of the illegal instruction so we can<br>figure out where it is coming from. Fixing it then will probably be<br>striaghtforward.<br><br></pre>
</blockquote>
<pre wrap="">So how do I find the address?<br></pre>
</blockquote>
<pre wrap=""><!----><br>If you don't have visibility with a debugger, then all I know to do is <br>modify the default exception handler to print the eip somewhere you <br>can see it.<br><br>When I look at _defaultExcHandler in cpukit/score/cpu/i386/cpu.c, <br>it already is printing eip. Are you sure it isn't there? If it <br>has scrolled off, move the print with the eip to the end so it <br>is visible or switch the console to a com port so you have scroll<br>history.<br><br></pre>
</blockquote>
<pre class="moz-signature" cols="$mailwrapcol">PC 104125<br><br>The instructions there are<br><br>104125: f0 0f c1 05 5c 0d 15 lock xadd %eax,0x150d5c<br><br>-- <br></pre>
</blockquote>
<pre class="moz-signature" cols="$mailwrapcol">In have done an objdump on my working exe and lock xadd is in quite a few places.<br><br>If I do an objdump on my exe built with gcc295, lock xadd is nowhere at all.<br><br>I did a search on google for lock xadd and in quite a few places it says it is an illegal instruction. It is probably a GCC issue<br><br>--
Angelo Fraietta
PO Box 859
Hamilton NSW 2303
Home Page
<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>
There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
Bernard of Clairvaux (1090 - 1153)</pre>
<br>
</body>
</html>