This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
one more h8300 ld -r problem left
- To: BINUTILS at sources dot redhat dot com
- Subject: one more h8300 ld -r problem left
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Thu, 02 Nov 2000 13:17:56 -0600
- Organization: OAR Corporation
- Reply-To: joel dot sherrill at OARcorp dot com
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