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

Re: Bug#185816: lintian: shlib-with-non-pic-code not working

On Sat, Oct 11, 2003 at 08:58:32AM +1000, Kevin Ryde wrote:
> I notice ld adds a TEXTREL entry to the dynamic section of a shared
> library when there's relocations in the text segment (or any read-only
> segment I think).
> I believe lintian can therefore identify shlib-with-non-pic-code using
> something like
> 	readelf -d foo.so | grep TEXTREL
> I'd propose an actual patch, but I don't think I'm smart enough to
> follow the way info on files is supposed to be collected at the start
> and later used.  I guess if what's done now with objdump is no longer
> required then it could be adapted.
> On my i386, without wanting to pick on anyone, libpari1 and libpgplot5
> are current culprits.
> For reference, the TEXTREL stuff can be seen in binutils
> bfd/elf32-i386.c, and similar in other arch files.  It looks like all
> debian archs are be covered by such things, but even if that's not the
> case it'd be a good start at least.

Can anyone from debian-gcc comment on what Kevin said, please?

     2. That which causes joy or happiness.

Reply to: