This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: bug report for binutils-2.9.1 h8300 cross linker


Jeffrey A Law wrote:

>   > function "h8300_bfd_link_add_symbols" in file coff-h8300.c is broken:
> Actually, I'm not sure your change is correct.
> 
> How/why does an archive file have sections?
> 
> ie, that code should never have been executed to begin with because the
> enclosing for loop should not have iterated at all for an archive file.
> 
> An archive does not have sections as far as I know -- it is mereely a
> container for other object files.
> 
> jeff

This is very strange, but my linker's working now and I don't know why.

In an effort to isolate and recreate the problem, I passed
all my object files and libs to h8300-hitachive-hms-gcc to
see if that would work.  It did.

I then passed the same objs and libs to the linker
h8300-hitachi-hms-ld run directly
to verify it would still core dump...It did.

I then passed a command line to h8-gcc in order to attempt
to have it generate a map file.  I screwed up the command
line and caused the map file to overwrite my mon300l.a lib.

I copied the lib back to my working dir from a backup dir.

This morning, I tried a link and it worked.

I don't understand this because the backup copy of mon300l.a also
caused the linker to core dump.  Apart from that, including libc.a
alone would also cause the linker to core dump and I haven't
done anything different with libc.a.

I had also done an objdump of mon300l.a and libc.a and found
nothing unusual about them at the time the linker was still core
dumping.

It's very wierd, I can only guess that there's been a change
somewhere that I've lost track of.  Sorry if this was some
kind of false alarm. This is going to gnaw at me until if figure
out why my linker's working now and didn't before though.

 
-- 
|\/|
|/\|  randall@elgar.com
|\/|  rsl@zanshinsys.com http://www.zanshinsys.com
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.