This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Problem building RedBoot for Assabet


Hi,

I'm trying to build redboot for assabet.

Here is what I'm doing :

ebenard:/tmp/redboot4# export ECOS_REPOSITORY=~ebenard/ecos/packages/
ebenard:/tmp/redboot4# ecosconfig new assabet redboot
U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
U CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM, new inferred value 0
U CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS, new inferred value 1
ebenard:/tmp/redboot4# ecosconfig import 
~ebenard/ecos/packages/hal/arm/sa11x0/assabet/current/misc/redboot_ROM.ecm
ebenard:/tmp/redboot4# ecosconfig tree
ebenard:/tmp/redboot4# make

everything seems to compile well.
except when creating redboot.elf file, I get the following warnings :
arm-elf-gcc -Wl,--gc-sections -Wl,-static -g -O2 -nostdlib 
-L/tmp/redboot3/install/lib -Ttarget.ld -o /tmp/redboot3/install/bin/redboot.elf 
/tmp/redboot3/install/lib/version.o
/skiff/local/arm-linux/bin/ld: warning: no memory region specified for section 
`.got.plt'
/skiff/local/arm-linux/bin/ld: warning: no memory region specified for section 
`.got'

 From what I've seen, got means GLOBAL_OFFSET_TABLE and should'nt be found in 
arm's redboot as it was remove during year 1999.

In the end, the .got & .got.plt parts are located from 0x00 & 0x10 which leads 
to the following redboot.bin :
# hexdump /tmp/redboot4/install/bin/redboot.bin
0000000 0000 0000 0000 0000 0000 0000 7962 5001
0000010 7a62 5001 0000 0000 0000 0000 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
*
50000000 f018 e59f f018 e59f f018 e59f f018 e59f
50000010 f018 e59f 0000 0000 f018 e59f f018 e59f
50000020 0060 0000 0358 5000 03dc 5000 0414 5000

Here is what is in .got :
Disassembly of section .got.plt:

00000000 <_GLOBAL_OFFSET_TABLE_>:
         ...
Disassembly of section .got:

0000000c <.got>:
    c:   5001796a        andpl   r7, r1, r10, ror #18
   10:   50017a6a        andpl   r7, r1, r10, ror #20

I've tried with several compilers :
arm-linux-gcc version 2.95.2 19991024 (release)
arm-elf-gcc version 2.95.2 19991024 (release)
arm-linux-gcc version 2.95.3 20010315 (release)
arm-linux-gcc gcc version 3.0

I've tried to build redboot for ipaq and get the same problem.

Is there anyone here who could give me a hint to find this problem ?
Is my process to build redboot good ?
Has anyone here managed to build redboot for assabet using the latest cvs ?
If not, which cvs tag should be used to get a running redboot ?

Many thanks for your help

Eric


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