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

Diff of /trunk/scripts/gen_symbol_version_map.awk

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

Revision 300 Revision 301
1BEGIN { 1BEGIN {
2 split(ENVIRON["SYMBOLS"], SYMBOLS); 2 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
47 if (($5 == "WEAK") && ($NF ~ sym_regex)) { 51 if (($5 == "WEAK") && ($NF ~ sym_regex)) {
48 split($NF, symbol_array, /@@/); 52 split($NF, symbol_array, /@@/);
49 53
50 # Don't add local symbols of versioned libc's 54 # Don't add local symbols of versioned libc's
51 if (VERSIONED_LIBC && !symbol_array[2]) 55 if (VERSIONED_LIBC && !symbol_array[2])
56 continue;
57
58 # Blacklist __getcwd on FreeBSD
59 # Unleashed - May 2006
60 if ((symbol_array[1] == "__getcwd") && (ABI == "FreeBSD"))
52 continue; 61 continue;
53 62
54 # Handle non-versioned libc's like uClibc ... 63 # Handle non-versioned libc's like uClibc ...
55 if (!symbol_array[2]) 64 if (!symbol_array[2])
56 symbol_array[2] = ""; 65 symbol_array[2] = "";

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

  ViewVC Help
Powered by ViewVC 1.1.20