aboutsummaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-01-24 08:04:23 +0100
committerFlorian Weimer <fweimer@redhat.com>2025-01-24 12:25:29 +0100
commit36fcdfbbc5463e55581fec67141df3493fb81f7e (patch)
tree8a63f44679b2da4b0de721e2fc0d299e43e5343a /csu
parentb62759db04b8ed7f829c06f1d7c3b8fb70616493 (diff)
downloadglibc-36fcdfbbc5463e55581fec67141df3493fb81f7e.tar.xz
glibc-36fcdfbbc5463e55581fec67141df3493fb81f7e.zip
Revert "stdlib: Support malloc-managed environ arrays for compatibility"
This reverts commit b62759db04b8ed7f829c06f1d7c3b8fb70616493. Reason for revert: Incompatible with “env -i” and coreutils (bug 32588). Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'csu')
-rw-r--r--csu/init-first.c1
-rw-r--r--csu/libc-start.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/csu/init-first.c b/csu/init-first.c
index 0ad6f75dcd..e35e4ce84f 100644
--- a/csu/init-first.c
+++ b/csu/init-first.c
@@ -61,7 +61,6 @@ _init_first (int argc, char **argv, char **envp)
__libc_argc = argc;
__libc_argv = argv;
__environ = envp;
- __environ_startup = envp;
#ifndef SHARED
/* First the initialization which normally would be done by the
diff --git a/csu/libc-start.c b/csu/libc-start.c
index 4e15b6191d..6f3d52e223 100644
--- a/csu/libc-start.c
+++ b/csu/libc-start.c
@@ -244,7 +244,6 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
char **ev = &argv[argc + 1];
__environ = ev;
- __environ_startup = ev;
/* Store the lowest stack address. This is done in ld.so if this is
the code for the DSO. */