Port-powerpc archive

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

Re: Support for relocation type 10 in ld.elf_so



At 08:30 PM 6/15/2002, Allen Briggs wrote:
I was looking at PR pkg/13771 which complains that Apache's mod_perl is
not usable because:

# apachectl configtest
Syntax error on line 1220 of /usr/pkg/etc/httpd/httpd.conf:
Cannot load /usr/pkg/lib/httpd/mod_perl.so into server: /usr/pkg/lib/httpd/mod_perl.so: Unsupported relocation type 10 in non-PLT relocations

This tells me that the .so was compiled -fpic or -fPIC.

I'm not sure how we're getting the R_PPC_REL24 relocations in
mod_perl.so, but that's really kind of unacceptable behavior.
Todd V. mentioned that, well, ld.elf_so could always be taught
about this relocation type, and I think the following patch
does this.

I disagree.  If you are shared libraries and compiling PIC, bad things
will happen.

--
Matt Thomas               Internet:   matt%3am-software.com@localhost
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message




Home | Main Index | Thread Index | Old Index