blob: 9a508b0bc1c6c9d529dfbf99b87374d09a997fa3 [file] [log] [blame]
sewardjcbdddcf2005-03-10 23:23:45 +00001#! /usr/bin/perl -w
2
3use strict;
4
sewardjcbdddcf2005-03-10 23:23:45 +00005while (<>)
6{
7 s/ __getsockname / getsockname /;
8 s/ __sigaction / sigaction /;
9 s/ __GI___/ __/;
10 s/ __([a-z]*)_nocancel / $1 /;
11
sewardj8eb8bab2015-07-21 14:44:28 +000012 # "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...)/;
sewardjcbdddcf2005-03-10 23:23:45 +000015
florian61e7d632013-10-07 20:57:51 +000016 # Filter out dynamic loader
florian17cc6802013-10-08 06:02:01 +000017 s/ \(in \/.*ld-.*so\)$//;
florian61e7d632013-10-07 20:57:51 +000018
njne66ffee2009-02-12 00:51:50 +000019 # 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)/;
tom9e41d8d2006-04-13 12:44:31 +000022
carllb6b52052015-05-13 21:46:47 +000023 # filter out the exact libc-start.c:### line number. (ppc64*)
24 s/\(libc-start.c:[0-9]*\)$/(in \/...libc...)/;
25
njn9cf79b52009-03-10 03:34:00 +000026 # 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
mjwaf0328c2015-09-18 09:15:15 +000039 # Some glibc versions complain about unexpected futex syscall errors.
40 s/The futex facility returned an unexpected error code.//;
41
sewardjcbdddcf2005-03-10 23:23:45 +000042 print;
43}
44
45exit 0;