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

Re: prelink does not work correctly on powerpc



On Tue, 2003-10-14 at 15:50, Guido Guenther wrote:
> On Tue, Oct 14, 2003 at 03:31:51PM +0200, Michel Dänzer wrote:
> > objdump -R /usr/lib/libavcodec-0.4.8.so|grep R_PPC_REL24
> Can you point me to a current copy of Linux PPC ELF ABI so I can check
> these things myself in the future?

Had to google it up myself: http://www.linuxbase.org/spec/refspecs/
links to http://www.linuxbase.org/spec/refspecs/elf/elfspec_ppc.pdf,
don't know if that's the one though.


> > BTW, this isn't a PPC specific problem, there's a reason why Debian 
> > policy mandates that shared libraries consist entirely of -fPIC code: 
> > they break otherwise on pretty much anything but i386.

... and prevents prelinking everywhere, I should add. So even i386
people tend to care about this nowadays. :)

> Sure we're having pretty much the same issues on mips. PPC seems to be
> different as it "allows" non pic code to work to a certain extent at
> least.

Yes, it's a bit unfortunate that the problem only manifests itself at
runtime (and not 100% deterministically... although prelinking 'helps'
somewhat there), but AFAIK Dan intends to change that in the toolchain
at some point.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer



Reply to: