+2005-03-22 Roland McGrath <roland@redhat.com>
+
+ * Versions.def (libdl, librt): Add GLIBC_2.3.4 version.
+
+ * scripts/versions.awk: Print all errors and die at the end.
+ Use library name in versions array keys.
+
2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
* elf/elf.h (PT_ARM_EXIDX): New macro.
# Combine version map fragments into version scripts for our shared objects.
-# Copyright (C) 1998,99,2000,02 Free Software Foundation, Inc.
+# Copyright (C) 1998,99,2000,2002,2005 Free Software Foundation, Inc.
# Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
# This script expects the following variables to be defined:
# Read definitions for the versions.
BEGIN {
+ lossage = 0;
+
nlibs=0;
while (getline < defsfile) {
if (/^[a-zA-Z0-9_.]+ \{/) {
libs[$1] = 1;
curlib = $1;
while (getline < defsfile && ! /^}/) {
- if ($2 == "=") {
+ if ($2 == "=") {
renamed[curlib "::" $1] = $3;
- }
+ }
else
- versions[$1] = 1;
+ versions[curlib "::" $1] = 1;
}
}
}
actlib = $1;
if (!libs[$1]) {
printf("no versions defined for %s\n", $1) > "/dev/stderr";
- exit 1;
+ ++lossage;
}
next;
}
/^ [A-Za-z_]/ {
if (renamed[actlib "::" $1])
actver = renamed[actlib "::" $1];
- else if (!versions[$1]) {
+ else if (!versions[actlib "::" $1]) {
printf("version %s not defined for %s\n", $1, actlib) > "/dev/stderr";
- exit 1;
+ ++lossage;
}
else
actver = $1;
# Now print the accumulated information.
END {
close(sort);
+
+ if (lossage) {
+ system("rm -f " tmpfile);
+ exit 1;
+ }
+
oldlib = "";
oldver = "";
printf("version-maps =");