blob: 83e92d792c756df4aac7f5a91d64b8db7ad43991 [file] [log] [blame]
sewardjcbdddcf2005-03-10 23:23:45 +00001#! /usr/bin/perl -w
2
3use strict;
4
5my @libc_symbols = qw(__libc_start_main accept execve fcntl
6 getsockname poll readv recvmsg
7 socket socketpair syscall writev);
8
9my $libc_symbols = join("|", @libc_symbols);
10
11while (<>)
12{
13 s/ __getsockname / getsockname /;
14 s/ __sigaction / sigaction /;
15 s/ __GI___/ __/;
16 s/ __([a-z]*)_nocancel / $1 /;
17
18 s/\(in \/.*libc.*\)$/(in \/...libc...)/;
19 s/\(within \/.*libc.*\)$/(within \/...libc...)/;
20
njne66ffee2009-02-12 00:51:50 +000021 # Remove the filename -- on some platforms (eg. Linux) it will be in
22 # libc, on some (eg. Darwin) it will be in the main executable.
23 s/\(below main\) \(.+\)$/(below main)/;
tom9e41d8d2006-04-13 12:44:31 +000024
sewardjcbdddcf2005-03-10 23:23:45 +000025 s/($libc_symbols) \(.+\.[cS]:\d+\)$/$1 (in \/...libc...)/;
26
27 print;
28}
29
30exit 0;