1 # Script to preprocess Versions.all lists based on "earliest version"
2 # specifications in the shlib-versions file.
5 for (i =
0; i
<=
NF - 3; ++i
)
6 firstversion
[$
1, i
] = $
(3 + i
);
11 NF ==
2 && $
2 ==
"{" { thislib = $
1; print; next }
14 if ((thislib
, idx
[thislib
]) in firstversion
) {
15 # We haven't seen the stated version, but have produced
16 # others pointing to it, so we synthesize it now.
17 printf " %s\n", firstversion
[thislib
, idx
[thislib
]];
24 /GLIBC_PRIVATE
/ { print; next }
27 if ((thislib
, idx
[thislib
]) in firstversion
) {
28 # XXX relative string comparison loses if we ever have multiple digits
29 # between dots in GLIBC_x.y[.z] names.
30 v = firstversion
[thislib
, idx
[thislib
]];
32 firstversion
[thislib
, idx
[thislib
]] =
0;
34 if ((thislib
, idx
[thislib
]) in firstversion
)
35 v = firstversion
[thislib
, idx
[thislib
]];