Linking

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Guest

Linking

Post by Guest »

what does it mean when ld says "bp.o(.text+0x4): relocation truncated to fit: 16 data"
and how do i solve it?
Guest

RE:Linking

Post by Guest »

Can you give us some more info as to how you created your bp object and how your linking it


-Christopher

>On 2002-04-17 17:07:06, Anonymous wrote:
>what does it mean when ld says "bp.o(.text+0x4): relocation truncated to fit: 16 data"
>and how do i solve it?
Liam

RE:Linking

Post by Liam »

>On 2002-04-17 19:28:23, Anonymous wrote:
>Can you give us some more info as to how you created your bp object and how your linking it
>
>
>-Christopher
>
>>On 2002-04-17 17:07:06, Anonymous wrote:
>>what does it mean when ld says "bp.o(.text+0x4): relocation truncated to fit: 16 data"
>>and how do i solve it?

bp.o is my assembler boilerplate, assembled with nasm (with no warnings,
dunno what it means (im not on my developement pc (im at skool)) but sumwhere in the "nasm" command it says aout?
the kernel.o file compiles okay with no warnings
but when it comes to "ld" it says that error message, im using a liker script thet places the kernel .text at 1meg 0x100...
also the nasm boilerplate has all the multiboot stuff.
it all worked fine untill i sterted putting strings (stuff for memory management (to get the total memory size)) into bp.asm
help appriciated, liam
Chris Giese

RE:Linking

Post by Chris Giese »

>On 2002-04-17 17:07:06, Anonymous wrote:
>what does it mean when ld says "bp.o(.text+0x4): relocation truncated to fit: 16 data"

16-bit code or data is at an address greater than 64K.

>and how do i solve it?

http://www.execpc.com/~geezer/osd/gotchas/#mixing
Post Reply