/[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 204 Revision 205
6 for (x in SYMBOLS) { 6 for (x in SYMBOLS) {
7 sym_regex = "^" SYMBOLS[x] "(@|$)" 7 sym_regex = "^" SYMBOLS[x] "(@|$)"
8 if ($8 ~ sym_regex) { 8 if ($8 ~ sym_regex) {
9 split($8, symbol_array, /@|@@/); 9 split($8, symbol_array, /@|@@/);
10 10
11 # Don't add local symbols of versioned libc's
12 if (VERSIONED_LIBC && !symbol_array[2])
13 continue;
14
15 # We have a versioned libc
16 if (symbol_array[2])
17 VERSIONED_LIBC = 1;
18
19 ADD = 1;
20 # Check that we do not add duplicates
21 for (x in PROCESSED_SYMBOLS) {
22 if (x == $8) {
23 ADD = 0;
24 break;
25 }
26 }
27
28 if (ADD) {
11 SYMBOL_LIST[symbol_array[1]] = SYMBOL_LIST[symbol_array[1]] " " $8; 29 SYMBOL_LIST[symbol_array[1]] = SYMBOL_LIST[symbol_array[1]] " " $8;
30 PROCESSED_SYMBOLS[$8] = $8;
31 }
12 } 32 }
13 } 33 }
14} 34}
15 35
16END { 36END {

Legend:
Removed from v.204  
changed lines
  Added in v.205

  ViewVC Help
Powered by ViewVC 1.1.20