sparc64: Remove unwind information from signal return stubs [BZ#31244]
[glibc.git] / scripts / lib-names.awk
bloba9e018bba1b376e6fc4369593ffe9fd0ae9c1f00
1 # awk script for soversions.i -> gnu/lib-names.h; see Makeconfig.
5 split($1, fields, "=")
6 lib = fields[1];
7 soname = version = fields[2];
8 sub(/^.*=/, "", soname);
9 sub(/^lib.*\.so\./, "", version);
10 if ($soname !~ /^lib/) {
11 extra = soname;
12 sub(/\.so.*$/, "", extra);
14 else {
15 extra = "";
17 soname = "\"" soname "\"";
18 lib = toupper(lib);
19 extra = toupper(extra);
20 gsub(/-/, "_", lib);
21 gsub(/-/, "_", extra);
22 macros[$1 FS lib "_SO"] = soname;
23 if (extra)
24 macros[$1 FS extra "_SO"] = soname;
27 END {
28 for (elt in macros) {
29 split(elt, x);
30 printf("%-40s%s\n", "#define " x[2], macros[elt]);