public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] "unsupported reloc" error with ld
@ 2000-11-16 20:18 gjertsen
  2000-11-16 20:43 ` Jim Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: gjertsen @ 2000-11-16 20:18 UTC (permalink / raw)
  To: linux-ia64


Can a compiler person out there provide some insight
on the following error I get with some C++ code when
doing a final bind with ld:

fs/fs.o(.IA_64.unwind+0x98b8): unsupported reloc
(... a bunch of these ...)

I am trying out the new toolchain from cygnus, 1024 snapshot,
with the old glibc v2.1.3 (and the 2 patches for ABI and shared libs).
This is an improvement from before when I was also getting additional
"Dwarf Error" messages with the current turbolinux toolchain:

--------------------------------------------------------------------------------------------------
ld: Dwarf Error: Could not find abbrev number 100.
(... a bunch more similar to this ...)
fs/fs.o(.IA_64.unwind+0x98d0): unsupported reloc
(... a bunch more similar to this ...)
--------------------------------------------------------------------------------------------------

Based on scaning the IA64 mail lists I saw two notes
that discussed similar looking problems that referred
to C++ EH and the use of inconsistant libraries and toolchain:

[Linux-ia64] Bad unwind record ...   Mon, 24 Jul 2000
[Linux-ia64] ld failure  26 Apr 2000

Thanks,

--Rob




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Linux-ia64] "unsupported reloc" error with ld
  2000-11-16 20:18 [Linux-ia64] "unsupported reloc" error with ld gjertsen
@ 2000-11-16 20:43 ` Jim Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Jim Wilson @ 2000-11-16 20:43 UTC (permalink / raw)
  To: linux-ia64

>Can a compiler person out there provide some insight
>on the following error I get with some C++ code when
>doing a final bind with ld:

>fs/fs.o(.IA_64.unwind+0x98b8): unsupported reloc
>(... a bunch of these ...)

The fs.o object file contains a relocation that GNU ld does not support
in the context where it appeared.  It is not possible to say anything more
about this problem without further info.  If you debug the linker, you
can find out the number of the relocation and the context where it is being
used.  Or if you provide object files to me, I can do this.

Are you using gcc?  If you are using some other compiler, then the other
compiler could be emitting relocs that GNU ld doesn't support yet.

The dwarf error messages can be ignored.  The linker is trying to pretty
print error messages by using the debug info to determine the function name
and line number where the problem occured.  This pretty printing code is
failing because the debug info hasn't been relocated yet, and hence isn't
valid as is.  Someday this will be fixed by extending this code to relocate
the debug info before trying to use it if possible.

Neither old message seems relevant to me.

Jim


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-16 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-16 20:18 [Linux-ia64] "unsupported reloc" error with ld gjertsen
2000-11-16 20:43 ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox