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

RE: [microblaze-uclinux] BINFMT_FLAT: reloc outside program 0xff05a204 error



Hi,

> BINFMT_FLAT: reloc outside program 0xff05a204 (0 - 0x75414/0x449a0),
killing testapp!
I encountered the same problem before. Here is that I did to solve the error.

See the offending address 0xff05a204, check the symbol table file, find out which function gives rise to the offending address, and re-exam the function.

Rgds,
Victor Yeo

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Dr. Johann Pfefferl
Sent: Monday, March 17, 2008 11:12 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: [microblaze-uclinux] BINFMT_FLAT: reloc outside program 0xff05a204 error

Hello,

I try to run a program which uses the glib-2.0 library on petalinux 0.30.
When I try to start the application I get the error mentioned in the subject.
The executable itself is approximately 500k in size.
My MicroBlaze design has 64MB of RAM.

# ./testapp
BINFMT_FLAT: Loading file: ./testapp
Mapping is 80700000, Entry point is 44, data_start is 449e0
Load ./testapp: TEXT=80700040-807449e0 DATA=807449e4-80774d14
BSS=80774d14-80775454
BINFMT_FLAT: reloc outside program 0xff05a204 (0 - 0x75414/0x449a0),
killing testapp!
SIGSEGV

I have compiled the application with 
FLTFLAGS += -v -k
to track down the problem.
I attached a makefile logging where you can see the relocation process
and the flthdr tool shows the follwoing information:

# microblaze-uclinux-flthdr testapp
testapp
    Magic:        bFLT
    Rev:          4
    Build Date:   Mon Mar 17 16:00:37 2008
    Entry:        0x44
    Data Start:   0x449e0
    Data End:     0x74d10
    BSS End:      0x75450
    Stack Size:   0x1000
    Reloc Start:  0x74d10
    Reloc Count:  0x14fb
    Flags:        0x1 ( Load-to-Ram )

If I do compile a smaller glib-2.0 based test program everything is ok.

If I compile the same application and the glib-2.0 library with the old
mb-xxx toolchain
# mb-gcc --version
mb-gcc (GCC) 3.4.1 ( Xilinx EDK 8.1 Build EDK_I.17 090206 )
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

the whole program starts as expected. So I expect that there must be
something wrong with the cross compile toolchain in the petalinux
distribution.

Anybody out there has an idea what's going wrong here.

Thanks
   Hans

-- 
Dr. Johann Pfefferl   ------------   mailto j.pfefferl at eubus dot net
Eubus GmbH          http://www.eubus.net ++++ http://www.ebmhydraxc.com
Gollierstr. 70
D-80339 Muenchen
Phone: +49 (0)89 45 22 578-67     Fax: +49 (0)89 45 22 578-55
Registergericht Muenchen HRB 145 336, Ust-Id Nr. DE 225 783 933
Geschaeftsfuehrer: Volker Ulrich, Peter Sibities
==
 -o)   A computer program does what you tell it to do,
 /\\        not what you want it to do.               
_\_v-                                                 


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/