This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help with debugging coff .cset bug?


I'm making amusing attempts to debug a problem with .csect addressing in
the gas assembler.  I've got it configured on AIX
(--host=rs6000-ibm-aix4.3.3.0 --target=powerpc-ibm-aix) and Linux
(--host=i686-pc-linux-gnu --target=powerpc-ibm-aix), and I see the problem
in both places.  When I look at the .lst file and dump the object file, the
first and second .csects begin at the right address (0, since I haven't
linked it), but the third .csect begins where the first one left off (so if
the last address in the first section is 0x18, the first address of the
third section will be 0x1c).

I've done some stumbling around with gdb and printfs, and have found out
that the error happens after read_a_source_file(), but before
write_object_file().  I'm guessing this isn't much of a surprise, but I
suppose it's good to check the easy things first.  What I'm looking for is
a pointer to where the problem might be (an out and out fix would be cool
to).  Anyone out there have any suggestions?

The attached files will generate the bug with the following command run
with the above cofigured assembler...

as-new -m booke -al -o assem_test3.o assem_test3.as > assem_test3.lst

(See attached file: assem_test3.as)(See attached file: assem_test3.lst)(See
attached file: assem_test3.o)

--
Jason M. Sullivan
PowerPC Embbedded Processor Solutions
IBM Microelectronics
jasonsul@us.ibm.com (919.543.5650)

Attachment: assem_test3.as
Description: Binary data

Attachment: assem_test3.lst
Description: Binary data

Attachment: assem_test3.o
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]