Re: [uClinux-dev] elf2flt: ARM and PIC

From: Adrian von Bidder (avbidder@acter.ch)
Date: Wed Dec 05 2001 - 02:43:09 EST


Tom Walsh wrote:

> This looks okay, but, this may sound silly, is your flatmem MEMORY only
> 0x100000 (1 MB) in size?  Aside from David's GOT fixes, what happens if
> you set the lenght to 0x200000?

This really sounds silly - as my libc.a is below 250k and hello.o,
crt0.o are really tiny I didn't think it would make a difference. But
arrgh!

Linking at absolute address is now working. But something is still wrong
with either linking script or elf2flt:

[avbidder@atlas hello]$ arm-uclinux-gcc -fpic -msingle-pic-base
-mcpu=arm7tdmi -O3 -c hello.c 
[avbidder@atlas hello]$ arm-uclinux-ld -r -d -o hello.elftmp -L
../uclibc/lib ../uclibc/lib/crt0.o hello.o -lc   
[avbidder@atlas hello]$ arm-uclinux-ld -T ../../../gcc-3/lib/elf2flt.ld
-Ur -o hello.elf hello.elftmp 
[avbidder@atlas hello]$ arm-uclinux-ld -T ../../../gcc-3/lib/elf2flt.ld
-o hello.gdb hello.elftmp 
[avbidder@atlas hello]$ elf2flt -v -s 8192 -p hello.gdb hello.elf
Architecture and machine:  arm
TEXT -> vma=1 len=160
        lma=0 clen=0 oo=160 ap=0 fp=0
DATA -> vma=1 len=50
        lma=160 clen=160 oo=50 ap=0 fp=0
ERROR: text=160 overlaps data=1 ?

Why is the lma, but not the vma set? In the ld script if only one
address is specified, shouldn't it be the vma? Dave?

greets from Zürich
-- vbi
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:20:34 EDT