On Sun, 20 Nov 2011 23:31:43 +0000, Ben Hutchings <b...@decadent.org.uk> wrote: > On Sun, 2011-11-20 at 13:58 -0800, Steve Langasek wrote: > > On Sun, Nov 20, 2011 at 08:48:08PM +0000, Ben Hutchings wrote: > > > Would it be worth adding a lintian check for instructions that may not > > > be supported (bearing in mind that a fair few packages will need to > > > override it)? > > > > I've wanted this for a while, but haven't been sure how to go about it. I > > would even favor making this an overrideable archive reject tag, for use > > of cmov outside of a hwcap directory. > > > > Something similar on armel (armv4t vs. armv7) and powerpc (altivec) would > > probably be worthwhile. > > 1. Find all ELF executable/library files. > 2. Either: > a. Work out which instructions should be excluded, depending on the > directory. > b. Skip files in hwcap directories and exclude all instructions > missing from the minimum processor. > 3. 'objdump -d | grep' with appropriate instruction regexp; fail if > there's a match.
http://dev.gentoo.org/~dirtyepic/bin/analyze-x86 is very handy for this, although it's quite CPU-intensive. Regards, Stephen
signature.asc
Description: PGP signature