Index: tools/cygprofile/patch_orderfile.py |
diff --git a/tools/cygprofile/patch_orderfile.py b/tools/cygprofile/patch_orderfile.py |
index 17cde76b96e9960b9d7a5a1e97d8a2ab0598ec70..380e28a4316edfbede479ac4917ce88bdc9a2e68 100755 |
--- a/tools/cygprofile/patch_orderfile.py |
+++ b/tools/cygprofile/patch_orderfile.py |
@@ -111,7 +111,11 @@ for addr in addresses: |
# print "current count: " + str(count) |
(functions, size) = binary_search (addr, 0, len(uniqueAddrs)) |
total_size = total_size + size |
+ prefixes = ['.text.', '.text.startup.', '.text.hot.', '.text.unlikely.'] |
for function in functions: |
- print ".text." + function |
- print "" |
+ for prefix in prefixes: |
+ print prefix + function |
+ |
+# The following is needed otherwise Gold only applies a partial sort. |
+print '.text.*' |
sys.stderr.write ("total_size: " + str(total_size) + "\n") |