This is the mail archive of the binutils@sourceware.org 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]

RE: [H8] Wrong offset generated for .text section


Hi Nick,

Thank you very much for the reply.

>>Right, first of all, which versions of the C compiler and binutils
>>are you using ?

I am using gcc-4.2-20061205 and binutils-2.17.50.

>>Secondly, please could you open a bug report so that we can track 
>>this problem ?

Yes, I have opened a bug report. It is present at,
http://sourceware.org/bugzilla/show_bug.cgi?id=4666

>>Thirdly, please could you provide a small test case that reproduces 
>>the problem.  (And attach it to the bug report).

Attached "wrong_offset.tar.bz2" file contains both the testcases. One
contains "vects.c" file and the other does not.

>>Are you using a custom linker script ?

Yes, I am using custom linker script. Thank you for pointing this out.
I tried using default linker script. In this case, ".init" section 
gives the problem. In both the cases, the first section is in trouble.
When '.vects' is the first section, this does not happen as LMA for 
'.vects' is 0x0000.

Regards,
Sushil


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