<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Nick Clifton wrote:
<blockquote TYPE=CITE>Hi Thibaud,
<p>> I would like to use the gnu as and ld as cross development tools for
<br>> aix4.3. I read the previous releases were "broken" on that
<br>> platform. What's the status for the latest release: biuntils
2.13.1.
<p>I believe that the 2.13.1 binutils are currently working for this
<br>environment. If you do encounter problems, please report them
to this
<br>mailing list.
<p>Cheers
<br> Nick</blockquote>
Hi All,
<p>The attached source file (struct-ret-1.s) generates a SIGILL signal
on target powerpc-ibm-aix4.3.2 while executing.
<p>The source file is the result of the compilation of the corresponding
c file (also attached) with the following command line:
<br>powerpc-ibm-aix4.3.2-gcc -O0 -S struct-ret-1.c
<p>The output of the command "objdump -C -w -l -D -r struct-ret-1.o" show:
<p><tt>0000000000000408 <fp>:</tt>
<br><tt> 408: 00 00 04 32 .long 0x432 408: R_POS f+0xfffffffffffffbce</tt>
<br><tt> 40c: 00 00 02 c0 .long 0x2c0 40c: R_POS _structret1.rw_c+0xfffffffffffffd40</tt><tt></tt>
<p><tt>0000000000000410 <_structret1.rw_c>:</tt>
<br><tt> 410: 72 65 74 75 andil. r5,r19,29813</tt>
<br><tt> 414: 72 6e 20 76 andil. r14,r19,8310</tt>
<br><tt> 418: 61 6c 00 00 oril r12,r11,0</tt>
<br><tt> ...</tt>
<br><tt> 430: 00 52 00 00 .long 0x520000</tt><tt></tt>
<p><tt>0000000000000432 <f>:</tt>
<br><tt> ...</tt>
<br><tt> 434: R_POS .text</tt>
<br><tt> 438: R_POS TOC+0xfffffffffffffd00</tt>
<br><tt> 43a: 03 00 00 00 .long 0x3000000</tt>
<br><tt> ...</tt><tt></tt>
<p><tt>0000000000000440 <main>:</tt>
<br><tt> 440: 00 00 01 34 .long 0x134 440: R_POS .text</tt>
<br><tt> 444: 00 00 03 00 .long 0x300 444: R_POS TOC+0xfffffffffffffd00</tt><tt></tt>
<p>The data fp is a pointer to the function f.
<br>fp contains 0x432 but f seens to be defined at 0x434.
<p>I don't know if it's a gcc or gas problem.
<p>I use the following tools:
<br>binutils snapshot version 021208 and gcc snapshot version 20021209.
<p>Thank you for your response.
<p>Thibaud.
<br>
<br> </html>