diff mbox series

[1/2] Map ABI/VERSION of rtld to ABI/VERSION of ld [BZ #28132]

Message ID 20210802042940.932692-1-hjl.tools@gmail.com
State New
Headers show
Series [1/2] Map ABI/VERSION of rtld to ABI/VERSION of ld [BZ #28132] | expand

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

H.J. Lu Aug. 2, 2021, 4:29 a.m. UTC
Since the module name of ld is rtld, map ABI/VERSION of rtld to ABI/VERSION
of ld.  This fixes BZ #28132.
---
 scripts/abi-versions.awk | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/scripts/abi-versions.awk b/scripts/abi-versions.awk
index c369793459..09c9432f5c 100644
--- a/scripts/abi-versions.awk
+++ b/scripts/abi-versions.awk
@@ -27,6 +27,11 @@  $2 == "=" {
 
   printf "#define ABI_%s_%s\tABI_%s_%s\n", libid, oldid, libid, newid;
   printf "#define VERSION_%s_%s\t%s\n", libid, oldid, new;
+  if (libid == "ld") {
+    # The module name of ld is rtld.
+    printf "#define ABI_rtld_%s\tABI_ld_%s\n", oldid, oldid
+    printf "#define VERSION_rtld_%s\tVERSION_ld_%s\n", oldid, oldid
+  }
 
   next;
 }
@@ -38,6 +43,11 @@  $2 == "=" {
 
   printf "#define ABI_%s_%s\t%d\t/* support %s */\n", libid, versid, ++n, vers;
   printf "#define VERSION_%s_%s\t%s\n", libid, versid, vers;
+  if (libid == "ld") {
+    # The module name of ld is rtld.
+    printf "#define ABI_rtld_%s\tABI_ld_%s\n", versid, versid
+    printf "#define VERSION_rtld_%s\tVERSION_ld_%s\n", versid, versid
+  }
   next;
 }