/[path-sandbox]/trunk/scripts/gen_symbol_header.awk
Gentoo

Diff of /trunk/scripts/gen_symbol_header.awk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 300 Revision 301
1BEGIN { 1BEGIN {
2 COUNT = split(ENVIRON["SYMBOLS"], SYMBOLS); 2 COUNT = split(ENVIRON["SYMBOLS"], SYMBOLS);
3}
4
5/^ OS\/ABI:/ {
6 ABI = $NF
3} 7}
4 8
5{ 9{
6 # Unstripped libc's have '.symtab' section as well, and 10 # Unstripped libc's have '.symtab' section as well, and
7 # we should stop processing when we hit that 11 # we should stop processing when we hit that
43 if (($5 == "WEAK") && ($NF ~ sym_regex)) { 47 if (($5 == "WEAK") && ($NF ~ sym_regex)) {
44 split($NF, symbol_array, /@@/); 48 split($NF, symbol_array, /@@/);
45 49
46 # Don't add local symbols of versioned libc's 50 # Don't add local symbols of versioned libc's
47 if (VERSIONED_LIBC && !symbol_array[2]) 51 if (VERSIONED_LIBC && !symbol_array[2])
52 continue;
53
54 # Blacklist __getcwd on FreeBSD
55 # Unleashed - May 2006
56 if ((symbol_array[1] == "__getcwd") && (ABI == "FreeBSD"))
48 continue; 57 continue;
49 58
50 # We have a versioned libc 59 # We have a versioned libc
51 if (symbol_array[2] && !VERSIONED_LIBC) 60 if (symbol_array[2] && !VERSIONED_LIBC)
52 VERSIONED_LIBC = 1; 61 VERSIONED_LIBC = 1;

Legend:
Removed from v.300  
changed lines
  Added in v.301

  ViewVC Help
Powered by ViewVC 1.1.20