This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

Re: Error: 0-bit reloc in dll


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.


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