This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Error: 0-bit reloc in dll
- To: luca dot spinacci at marconicomms dot com
- Subject: Re: Error: 0-bit reloc in dll
- From: Nick Clifton <nickc at redhat dot com>
- Date: 23 Mar 2001 15:02:43 -0800
- Cc: binutils at sourceware dot cygnus dot com
- References: <C1256A14.004D4725.00@marconicomms.com>
Hi Luca,
> Error: 0-bit reloc in dll
>
> What means "Error: 0-bit reloc in dll"?
It means that linker was asked to perform a relocation (*) of a type
it was not expecting. In the context of the shared link that you are
trying to do, the linker knows that only a few. certain types of
relocations can legally be present, and if it detects any others it
emits this error message.
This problem is almost certainly the result of the undefined symbols
that the linker reported earlier:
> Cannot export maketable__6amicmd: symbol not found
Fix these problems and the 0-bit relocs should go away.
Cheers
Nick
(*) A relocation is an instruction to the linker to change part or all
of the value at a certain address in the executable. This allows
instructions to be modifed, data to be changed and so. Relocations
are typically used to "fill in the blanks" where the address of a
symbol can only be determiend at link time, not assembly time.