2008-11-18 13:33:47 +01:00
|
|
|
--- BinariesCheck.py
|
|
|
|
+++ BinariesCheck.py
|
2009-03-13 16:06:45 +01:00
|
|
|
@@ -56,10 +56,11 @@
|
2008-11-18 13:33:47 +01:00
|
|
|
self.debuginfo=0
|
|
|
|
self.symtab=0
|
2009-03-13 16:06:45 +01:00
|
|
|
self.tail = ''
|
|
|
|
+ self.compileOpts = set()
|
2008-11-18 13:33:47 +01:00
|
|
|
|
|
|
|
is_debug=BinaryInfo.debug_file_regex.search(path)
|
|
|
|
|
2009-03-13 16:06:45 +01:00
|
|
|
- cmd = ['env', 'LC_ALL=C', 'readelf', '-W', '-S', '-l', '-d', '-s']
|
|
|
|
+ cmd = ['env', 'LC_ALL=C', 'readelf', '-W', '-S', '-l', '-d', '-s', '-p', '.comment.SUSE.OPTs']
|
2008-11-18 13:33:47 +01:00
|
|
|
cmd.append(path)
|
|
|
|
res = Pkg.getstatusoutput(cmd)
|
|
|
|
if not res[0]:
|
2009-03-13 16:06:45 +01:00
|
|
|
@@ -115,6 +116,9 @@
|
2008-11-18 13:33:47 +01:00
|
|
|
self.symtab=1
|
|
|
|
continue
|
|
|
|
|
|
|
|
+ if l.lower().find(" ospwg") != -1:
|
|
|
|
+ self.compileOpts.add(l.rpartition(' ')[2])
|
|
|
|
+
|
|
|
|
if self.non_pic:
|
|
|
|
self.non_pic=BinaryInfo.non_pic_regex.search(res[1])
|
2009-03-13 16:06:45 +01:00
|
|
|
|