[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] reloc outside program error
John,
This is to follow up on the reloc outside program error issue. I have rewritten the Makefile and set the FLTFLAGS += -v. The elf2flt verbose output and console output is shown below. I could not figure out what went wrong, even with this info. Any pointer is appreciated.
Thanks,
Victor
The error message on console:
# ./dmc &
BINFMT_FLAT: Loading file: ./dmc
51
# Mapping is 27800000, Entry point is 44, data_start is 20eec0
Load ./dmc: TEXT=27800040-27a0eec0 DATA=27a0eec4-27a7f934 BSS=27a7f934-27b45734
BINFMT_FLAT: reloc outside program 0xfe0b72a4 (0 - 0x3456f4/0x20ee80), killing !
The verbose (-v) data from elf2flt:
*************snippet ****************
reloc[28128] = 0x275be8
RELOC[28129]: offset=0x66d84 symbol=typeinfo for std::bad_alloc+0x0 section=.data size=4 fixup=0x275c14 (reloc=0x275c04)
reloc[28129] = 0x275c04
RELOC[28130]: offset=0x66d88 symbol=.text+0x1e3cf8 section=.text size=4 fixup=0x1e3cf8 (reloc=0x275c08)
reloc[28130] = 0x275c08
RELOC[28131]: offset=0x66d8c symbol=.text+0x1e3d24 section=.text size=4 fixup=0x1e3d24 (reloc=0x275c0c)
reloc[28131] = 0x275c0c
RELOC[28132]: offset=0x66d90 symbol=std::exception::what() const+0x0 section=.text size=4 fixup=0x1e39ec (reloc=0x275c10)
reloc[28132] = 0x275c10
RELOC[28133]: offset=0x66d94 symbol=vtable for __cxxabiv1::__si_class_type_info+0x8 section=.data size=4 fixup=0x275ae8 (reloc=0x275c14)
reloc[28133] = 0x275c14
RELOC[28134]: offset=0x66d98 symbol=typeinfo name for std::bad_alloc+0x0 section=.data size=4 fixup=0x275c20 (reloc=0x275c18)
reloc[28134] = 0x275c18
RELOC[28135]: offset=0x66d9c symbol=typeinfo for std::exception+0x0 section=.data size=4 fixup=0x275bb4 (reloc=0x275c1c)
reloc[28135] = 0x275c1c
SECTION: .bss [0x92f9c10]: flags=0x1 vma=0x27f8f0
SECTION: .stab [0x92f9d50]: flags=0x10214 vma=0x0
SECTION: .stabstr [0x92f9e90]: flags=0x10210 vma=0x0
SIZE: .text=0x20ee80, .data=0x70a70, .bss=0xc5e00, relocs=0x6de8
ZERO before text len=0x0
*************snippet ****************
-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John Williams
Sent: Friday, June 22, 2007 7:32 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] uclinux memory exhausted, unable to allocate RAM
Hi Victor,
victor-sv_yeo@xxxxxxxxxxx wrote:
> After I increase the program size to 700KB, I get a different error, which says BINFMT_FLAT: reloc outside program.
>
> I have compressed the program, and use "permit large allocations" setting in the kernel. I searched the mailing list, but I could not get an answer.
>
Can you please add the line
FLTFLAGS += -v
to your user app Makefile, then clean it and rebuild?
Part of of the output from make when building your app will be the
verbose (-v) data from elf2flt. Please extract that from the log and
post it to the list.
Regards,
John
___________________________
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/
___________________________
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/