sewardj | cbdddcf | 2005-03-10 23:23:45 +0000 | [diff] [blame] | 1 | #! /usr/bin/perl -w |
| 2 | |
| 3 | use strict; |
| 4 | |
sewardj | cbdddcf | 2005-03-10 23:23:45 +0000 | [diff] [blame] | 5 | while (<>) |
| 6 | { |
| 7 | s/ __getsockname / getsockname /; |
| 8 | s/ __sigaction / sigaction /; |
| 9 | s/ __GI___/ __/; |
| 10 | s/ __([a-z]*)_nocancel / $1 /; |
| 11 | |
sewardj | 8eb8bab | 2015-07-21 14:44:28 +0000 | [diff] [blame] | 12 | # "lib[S|s]ystem*" occurs on Darwin, "libsocket" on older Solaris/illumos. |
| 13 | s/\(in \/.*(libc|libSystem|libsystem|libsocket).*\)$/(in \/...libc...)/; |
| 14 | s/\(within \/.*(libc|libSystem|libsystem|libsocket).*\)$/(within \/...libc...)/; |
sewardj | cbdddcf | 2005-03-10 23:23:45 +0000 | [diff] [blame] | 15 | |
florian | 61e7d63 | 2013-10-07 20:57:51 +0000 | [diff] [blame] | 16 | # Filter out dynamic loader |
florian | 17cc680 | 2013-10-08 06:02:01 +0000 | [diff] [blame] | 17 | s/ \(in \/.*ld-.*so\)$//; |
florian | 61e7d63 | 2013-10-07 20:57:51 +0000 | [diff] [blame] | 18 | |
njn | e66ffee | 2009-02-12 00:51:50 +0000 | [diff] [blame] | 19 | # Remove the filename -- on some platforms (eg. Linux) it will be in |
| 20 | # libc, on some (eg. Darwin) it will be in the main executable. |
| 21 | s/\(below main\) \(.+\)$/(below main)/; |
tom | 9e41d8d | 2006-04-13 12:44:31 +0000 | [diff] [blame] | 22 | |
carll | b6b5205 | 2015-05-13 21:46:47 +0000 | [diff] [blame] | 23 | # filter out the exact libc-start.c:### line number. (ppc64*) |
| 24 | s/\(libc-start.c:[0-9]*\)$/(in \/...libc...)/; |
| 25 | |
njn | 9cf79b5 | 2009-03-10 03:34:00 +0000 | [diff] [blame] | 26 | # Merge the different C++ operator variations. |
| 27 | s/(at.*)__builtin_new/$1...operator new.../; |
| 28 | s/(at.*)operator new\(unsigned(| int| long)\)/$1...operator new.../; |
| 29 | |
| 30 | s/(at.*)__builtin_vec_new/$1...operator new.../; |
| 31 | s/(at.*)operator new\[\]\(unsigned(| int| long)\)/$1...operator new[].../; |
| 32 | |
| 33 | s/(at.*)__builtin_delete/$1...operator delete.../; |
| 34 | s/(at.*)operator delete\(void\*\)/$1...operator delete.../; |
| 35 | |
| 36 | s/(at.*)__builtin_vec_delete/$1...operator delete[].../; |
| 37 | s/(at.*)operator delete\[\]\(void\*\)/$1...operator delete[].../; |
| 38 | |
mjw | af0328c | 2015-09-18 09:15:15 +0000 | [diff] [blame] | 39 | # Some glibc versions complain about unexpected futex syscall errors. |
| 40 | s/The futex facility returned an unexpected error code.//; |
| 41 | |
sewardj | cbdddcf | 2005-03-10 23:23:45 +0000 | [diff] [blame] | 42 | print; |
| 43 | } |
| 44 | |
| 45 | exit 0; |