bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/805] New: linking error: cannot handle R_MEM_INDIRECT reloc when


From: dorchen1611 at hotmail dot com
Subject: [Bug ld/805] New: linking error: cannot handle R_MEM_INDIRECT reloc when using symbolsrec output
Date: 25 Mar 2005 17:50:25 -0000

On creating a .lx File for hms-8300 microprocessor (Lego robot) following linker
error occurs:

cannot handle R_MEM_INDIRECT reloc when using symbolsrec output.

for making the .lx I use the following Makefile.user:


##
## legOS - the independent LEGO Mindstorms OS
## Makefile.common - make rules for user executables
## (c) 1998, 1999 by Markus L. Noga <address@hidden>
##

# User application libraries. Comment out if linking
# them statically to kernel in Makefile.kernel.
BRICKOS_ROOT=/usr/local/src/brickos-0.2.6.10.6
LIBS=-lc -lmint -lfloat -lc++

# linker command files dynamic executables.
DYNAMIC_LDS =$(KERNEL).lds
DLDFLAGS    =-T $(DYNAMIC_LDS) -relax -L$(BRICKOS_ROOT)/lib

# base addresses to determine relocation info.
BASE1=0xb000
BASE2=0xb210

# Add config.h to include path.
CINC +=-I$(dir $(KERNEL))

############ new dynamic executables stuff

# how to build executables dynamically linked to the kernel
# set DYNAMIC_TEXT, DOBJECTS, DYNAMIC_LDS appropriately.
%.dcoff: %.o $(DOBJECTS) # $(DYNAMIC_LDS)
        $(LD) $(DLDFLAGS) $^ $(LIBS) -o $@ -Ttext $(BASE1) --oformat coff-h8300

# how to make barebones dymanic executable map files
%.dmap: %.dcoff
        $(NM) $< | sort > $@

# how to disassemble coff kernel
%.dis: %.dcoff
        $(OBJDUMP) $(ODFLAGS) $*.dcoff > $*.dis

# how to merge map files with symbols
%.dis2: %.dmap %.dis
        $(MERGEMAP) $*.dmap $< > $@

# how to make srec files of dynamic executables
%.ds1: %.o $(DOBJECTS) # $(DYNAMIC_LDS)
        $(LD) $(DLDFLAGS) $^ $(LIBS) -o $@ -Ttext $(BASE1)

# how to make srec files of dynamic executables
%.ds2: %.o $(DOBJECTS) # $(DYNAMIC_LDS)
        $(LD) $(DLDFLAGS) $^ $(LIBS) -o $@ -Ttext $(BASE2)

%.lx: %.ds1 %.ds2
        $(MAKELX) $^ $@

-- 
           Summary: linking error: cannot handle R_MEM_INDIRECT reloc when
                    using symbolsrec output
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: critical
          Priority: P1
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: dorchen1611 at hotmail dot com
                CC: bug-binutils at gnu dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=805

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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