diff options
author | Roland McGrath <roland@gnu.org> | 2000-03-19 20:36:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-03-19 20:36:44 +0000 |
commit | 361742eda986901daf75169faaf648d4d132ccfb (patch) | |
tree | a5d99df3b839ac0fd99cf17886ea35b900d16039 /scripts/abi-versions.awk | |
parent | 882688521994c2329242212a61dd2a7c44eadbc6 (diff) | |
download | glibc-361742eda986901daf75169faaf648d4d132ccfb.tar glibc-361742eda986901daf75169faaf648d4d132ccfb.tar.gz glibc-361742eda986901daf75169faaf648d4d132ccfb.tar.bz2 glibc-361742eda986901daf75169faaf648d4d132ccfb.zip |
* shlib-versions [USE_IN_LIBIO] (.*-.*-gnu-gnu*): Set earliest
supported version for libc 0.2.90.libio to GLIBC_2.2.
* Makeconfig (soversions.mk): Grok new third column in shlib-versions,
and use it to emit new variable `map-firstversions'.
* scripts/firstversions.awk: New file.
* Makerules (Versions.all): Use scripts/firstversions.awk and
the $(map-firstversions) value to generate a modified versions list
that includes renames in "A = B" syntax for each version set earlier
than the "earliest symbol version" named in shlib-versions.
* scripts/versions.awk: Recognize "A = B" lines in the input to mean
rename version set A to B in the output to the intermediate file.
* scripts/abi-versions.awk: New file.
* Makerules (abi-versions.h): New target, generated by that script.
[$(versioning) = yes] (before-compile): Prepend abi-versions.h.
* include/shlib-compat.h: New file, uses that generated header.
Diffstat (limited to 'scripts/abi-versions.awk')
-rw-r--r-- | scripts/abi-versions.awk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/scripts/abi-versions.awk b/scripts/abi-versions.awk new file mode 100644 index 0000000000..0cceaad66a --- /dev/null +++ b/scripts/abi-versions.awk @@ -0,0 +1,39 @@ +# Script to generate <abi-versions.h> header file from Versions.all list. +# See include/shlib-compat.h comments for explanation. + +BEGIN { + print "/* This file is automatically generated by abi-versions.awk."; + print " It defines symbols used by shlib-compat.h, which see. */"; + print "\n#ifndef _ABI_VERSIONS_H\n#define _ABI_VERSIONS_H"; +} + +NF == 2 && $2 == "{" { + thislib = $1; + gsub(/[^A-Za-z0-9_ ]/, "_"); libid = $1; + printf "\n/* start %s */\n", thislib; + next; +} +$1 == "}" { + printf "/* end %s */\n", thislib; + next; +} + +$2 == "=" { + new = $3; + gsub(/[^A-Za-z0-9_ ]/, "_"); id = $1; + printf "#define ABI_%s_%s\t0\t/* earliest supported %s */\n", libid, id, new; + printf "#define VERSION_%s_%s\t%s\n", libid, id, new; + next; +} + +{ + vers = $1; + gsub(/[^A-Za-z0-9_ ]/, "_"); id = $1; + printf "#define ABI_%s_%s\t1\t/* support %s */\n", libid, id, vers; + printf "#define VERSION_%s_%s\t%s\n", libid, id, vers; + next; +} + +END { + print "\n#endif /* abi-versions.h */"; +} |