one more h8300 ld -r problem left
Joel Sherrill
joel.sherrill@OARcorp.com
Thu Nov 2 11:27:00 GMT 2000
I think you guys have addressed nearly all of the
h8300 linking problems but this one got overlooked..
It appears the ld -r adds ctor/dtor symbols to files.
There are a few relocatables in RTEMS and when I include them
in final links, there are errors regarding multiple definitions
of __[cd]tors and __[cd]tors_end. Looking at them in more detail,
I see that before the "-r" ld, tehey do not include references to
__ctors, etc but the ".rel" version has these addition entries
according to nm:
00000178 ? ___ctors
00000178 ? ___ctors_end
00000178 ? ___dtors
00000178 ? ___dtors_end
When I do an objdump -h on the .o vs .rel, I see that the .tors
section has been added to the .rel.
On the final link, these come up as duplicate symbols from all
of the relocatables.
You can reproduce this with the same set of object files.
Any ideas?
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Binutils
mailing list