2010-11-26 10:08:13     uclinux-gcc compiles library as FDPIC ELF?

Document created by Aaronwu Employee on Oct 16, 2013
Version 1Show Document
  • View in full screen mode

2010-11-26 10:08:13     uclinux-gcc compiles library as FDPIC ELF?

Gilles Ganault (FRANCE)

Message: 96243   

 

Hello

 

I have a newbie question: I used bfin-uclinux-gcc to compile the Readline library, which ends up generating two files: libreadline.so.6.1 and libhistory.so.6.1.

 

I'm surprised, through, that the two files are ELF instead of FLAT:

 

===========

CC=/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gcc AR=/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ar RANLIB=/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-ranlib ./configure --host=i386-linux --target=bfin

 

[...]

 

/usr/src/readline-6.1/shlib# file libhistory.so.6.1

 

libhistory.so.6.1: ELF 32-bit LSB shared object, Analog Devices Blackfin, version 1 (SYSV), dynamically linked, stripped

 

/usr/src/readline-6.1/shlib# file libreadline.so.6.1

 

libreadline.so.6.1: ELF 32-bit LSB shared object, Analog Devices Blackfin, version 1 (SYSV), dynamically linked, stripped

===========

 

Does it mean that, even when using bfin-uclinux-gcc, a shared library is built as FDPIC ELF? In that case, what happens if the calling application is compiled as FLAT? Will a FLAT executable and an FDPIC ELF shared library work together?

 

Thank you.

QuoteReplyEditDelete

 

 

2010-11-26 17:32:38     Re: uclinux-gcc compiles library as FDPIC ELF?

Mike Frysinger (UNITED STATES)

Message: 96246   

 

no, those libraries are not FDPIC nor are they usable on a FLAT system.  they are, for all practical purposes, useless.

 

not that i know why you're building readline by hand considering it's already integrated into the uclinux-dist.

QuoteReplyEditDelete

 

 

2010-11-27 11:28:55     Re: uclinux-gcc compiles library as FDPIC ELF?

Gilles Ganault (FRANCE)

Message: 96259   

 

Just to learn how to compile applications that aren't already part of uClinux-dist.

QuoteReplyEditDelete

Attachments

    Outcomes