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

[bugweek] A script to detect -mtune=i386 libraries



Hi,

in theory we compile all of fedora core with -mtune=i686 (or
-mtune=pentium4 nowadays). however that only actually happens if
packages propagate the RPM_OPT_FLAGS into the CFLAGS properly; almost
all but not quite not all packages actually do this.

The script at 
can be used to check if a shared libary is compiled with -mtune=i386 or
-mtune=i686. If it detects i386 then most likely there is a packaging
bug with not propagating the compiler flags properly.

Usage is like this:

objdump -d sharelibraryfilename.so | perl detecti686.pl


known bugs:
If a shared library is really small with say only 1 function, it is
possible that the heuristics fail.


Greetings,
   Arjan van de Ven

Attachment: signature.asc
Description: This is a digitally signed message part


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