* [Buildroot] bfd lib include Error while build elf2flt
@ 2009-01-27 16:46 loody
2009-01-27 16:48 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: loody @ 2009-01-27 16:46 UTC (permalink / raw)
To: buildroot
Dear all:
While compiling elf2flt, the buildroot shows the error message as
attach at the end of this mail.
I try to rebuild the binuitilies, but it still fail.
If anyone has the same problem or knows where I get wrong, please let me know.
appreciate your help,
miloody
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/elf2flt/elf2flt.c:2120:
warning: format ???%x??? expects type ???unsigned int???, but argument
2 has type ???long unsigned int???
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/elf2flt/elf2flt.c:2088:
warning: ignoring return value of ???write???, declared with attribute
warn_unused_result
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/elf2flt/elf2flt.c:2124:
warning: ignoring return value of ???fwrite???, declared with
attribute warn_unused_result
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/elf2flt/elf2flt.c:2130:
warning: ignoring return value of ???fwrite???, declared with
attribute warn_unused_result
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/elf2flt/elf2flt.c:2133:
warning: ignoring return value of ???fwrite???, declared with
attribute warn_unused_result
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19-build/bfd/libbfd.a(compress.o):
In function `bfd_uncompress_section_contents':
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:96:
undefined reference to `inflateInit_'
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:103:
undefined reference to `inflate'
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:106:
undefined reference to `inflateReset'
/media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:108:
undefined reference to `inflateEnd'
collect2: ld returned 1 exit status
make: *** [elf2flt] Error 1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] bfd lib include Error while build elf2flt
2009-01-27 16:46 [Buildroot] bfd lib include Error while build elf2flt loody
@ 2009-01-27 16:48 ` Peter Korsgaard
2009-01-27 17:07 ` loody
0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2009-01-27 16:48 UTC (permalink / raw)
To: buildroot
>>>>> "loody" == loody <miloody@gmail.com> writes:
loody> Dear all:
loody> While compiling elf2flt, the buildroot shows the error message as
loody> attach at the end of this mail.
loody> I try to rebuild the binuitilies, but it still fail.
loody> If anyone has the same problem or knows where I get wrong, please let me know.
loody> appreciate your help,
loody> miloody
loody> undefined reference to `inflateInit_'
loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:103:
loody> undefined reference to `inflate'
loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:106:
loody> undefined reference to `inflateReset'
loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:108:
Don't know anything about elf2flt, but it seems like it needs to link
to zlib.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] bfd lib include Error while build elf2flt
2009-01-27 16:48 ` Peter Korsgaard
@ 2009-01-27 17:07 ` loody
2009-01-28 6:33 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: loody @ 2009-01-27 17:07 UTC (permalink / raw)
To: buildroot
>>>>>> "loody" == loody <miloody@gmail.com> writes:
>
> loody> Dear all:
> loody> While compiling elf2flt, the buildroot shows the error message as
> loody> attach at the end of this mail.
> loody> I try to rebuild the binuitilies, but it still fail.
> loody> If anyone has the same problem or knows where I get wrong, please let me know.
> loody> appreciate your help,
> loody> miloody
>
> loody> undefined reference to `inflateInit_'
> loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:103:
> loody> undefined reference to `inflate'
> loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:106:
> loody> undefined reference to `inflateReset'
> loody> /media/sda6/uclinux/buildroot-2009.02-rc2/toolchain_build_arm/binutils-2.19/bfd/compress.c:108:
>
> Don't know anything about elf2flt, but it seems like it needs to link
> to zlib.
>
> --
> Bye, Peter Korsgaard
>
Hi:
do you mean zlib1g-dev?
I use ubuntu and I have followed the instructions on the
website,http://docwiki.gumstix.org/Buildroot_on_Ubuntu, to update this
package as below.
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 176 not upgraded.
TT at TT-T43:~$
If not, would you please tell me which package I need?
appreciate your help,
miloody
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] bfd lib include Error while build elf2flt
2009-01-27 17:07 ` loody
@ 2009-01-28 6:33 ` Peter Korsgaard
2009-01-28 14:27 ` loody
0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2009-01-28 6:33 UTC (permalink / raw)
To: buildroot
>>>>> "loody" == loody <miloody@gmail.com> writes:
loody> do you mean zlib1g-dev?
loody> I use ubuntu and I have followed the instructions on the
loody> website,http://docwiki.gumstix.org/Buildroot_on_Ubuntu, to update this
loody> package as below.
Could you give svn trunk (after r25086) a try? It builds for me now.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] bfd lib include Error while build elf2flt
2009-01-28 6:33 ` Peter Korsgaard
@ 2009-01-28 14:27 ` loody
2009-01-28 14:45 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: loody @ 2009-01-28 14:27 UTC (permalink / raw)
To: buildroot
2009/1/28 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "loody" == loody <miloody@gmail.com> writes:
>
> loody> do you mean zlib1g-dev?
> loody> I use ubuntu and I have followed the instructions on the
> loody> website,http://docwiki.gumstix.org/Buildroot_on_Ubuntu, to update this
> loody> package as below.
>
> Could you give svn trunk (after r25086) a try? It builds for me now.
>
> --
> Bye, Peter Korsgaard
>
Hi:
thanks for your suggestion.
it works now.
But would you please tell me how to transform an elf to FLAT?
I googled the web and there are 2 methods seems work.
1. arm-linux-uclibcgnueabi-gcc -Wl,-elf2flt -o hello.flt hello.c
but my toolchain says:
arm-linux-uclibcgnueabi/bin/ld.real: error: no memory region specified
for loadable section `.plt'
collect2: ld returned 1 exit status
2. arm-linux-uclibcgnueabi-elf2flt -v -s 32658 -o hello.flt hello.o
but it says:
TEXT -> vma=0x0 len=0x24
DATA -> vma=0x0 len=0xc
ERROR: text=0x24 overlaps data=0x0 ?
If some successfully use above methods to transform elf to flat,
please let me know.
Sincerely Yours,
miloody
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-28 14:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-27 16:46 [Buildroot] bfd lib include Error while build elf2flt loody
2009-01-27 16:48 ` Peter Korsgaard
2009-01-27 17:07 ` loody
2009-01-28 6:33 ` Peter Korsgaard
2009-01-28 14:27 ` loody
2009-01-28 14:45 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox