[bugweek] A script to detect -mtune=i386 libraries
Arjan van de Ven
arjanv at redhat.com
Sat Sep 25 21:09:42 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040925/a69ee55a/attachment.sig>
More information about the fedora-devel-list
mailing list