From f1eeef945d49c72eb13654bd30b5904e89b4626f Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Fri, 10 Dec 2021 21:34:30 +0100
Subject: [PATCH] elf: Use errcode instead of (unset) errno in rtld_chain_load

Reference:https://sourceware.org/git/?p=glibc.git;a=commit;h=f1eeef945d49c72eb13654bd30b5904e89b4626f
Conflict:NA
---
 elf/rtld.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elf/rtld.c b/elf/rtld.c
index 6ce1e07dc0..4b09e84b0d 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1143,7 +1143,7 @@ rtld_chain_load (struct link_map *main_map, char *argv0)
 		     rtld_soname, pathname, errname);
   else
     _dl_fatal_printf("%s: cannot execute %s: %d\n",
-		     rtld_soname, pathname, errno);
+		     rtld_soname, pathname, errcode);
 }
 
 static void
-- 
2.33.0


