bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug report for ld


From: krystian.hirsch
Subject: bug report for ld
Date: Fri, 7 Feb 2003 16:46:17 +0100


Author: Krystian Hirsch  email          :  address@hidden
Executable affected: m6811-elf-ln.exe
version: GNU ld version 2.12.1

Background:
The C-code based ISR isr.c  routine generates assembly code isr.s and object
isr.o assuming the direct addressing mode to the common soft registers. Due to
the fact that I do not know what the rules for this assumption are and how to
change them, I tried an workaround by
trying to force the linker to put the soft registers _.tmp, _.xy, _.z. And I
failed.

Problem:
Although explicitly defined in the linker script file a8em.ld to place the
common symbols from file crt0.o into output section 'page0', and for all other
common symbols (normally generated by C-code thus not necessarily fitting into
256 byte long zero page) to use the 'data' output section at 0x2100 , the ln
insists to put them and all other into *( COMMON ) input section which belongs
to 'data' and is not allowing direct addressing mode causing an linker error
manifested by the following statement :
isr.o(.text+0x1): relocation truncated to fit: R_M68HC11_8 _.tmp
isr.o(.text+0x4): relocation truncated to fit: R_M68HC11_8 _.z
isr.o(.text+0x7): relocation truncated to fit: R_M68HC11_8 _.xy
isr.o(.text+0xb): relocation truncated to fit: R_M68HC11_8 _.xy
isr.o(.text+0xe): relocation truncated to fit: R_M68HC11_8 _.z
isr.o(.text+0x11): relocation truncated to fit: R_M68HC11_8 _.tmp
make: *** [all] Error 1
The ln does not create any obj, nor s19 file but creates a map file stating that
 the soft registers are assigned to the .data output.

Attachements:
(See attached file: web11.zip)







Attachment: web11.zip
Description: .ZIP File


reply via email to

[Prev in Thread] Current Thread [Next in Thread]