1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00

effectively revert revision 1.7.

The original reason was some corner cases around COPY relocations, which
caused problems for miniperl which directly modified environ and accessed
environ via libc functions.

This causes duplicate symbols for environ/__progname in some (poorly written)
apps, but is allowed on most other architectures.

Since the time this was added other arm architecture changes mean that we
don't need it, so remove it.

debugged with kettenis@ and jca@
tested and OK guenther@
This commit is contained in:
phessler 2024-08-17 09:48:31 +00:00
parent ef61d0404a
commit 792c719e1c

View File

@ -1,4 +1,4 @@
/* $OpenBSD: md_init.h,v 1.18 2023/11/18 16:26:16 deraadt Exp $ */
/* $OpenBSD: md_init.h,v 1.19 2024/08/17 09:48:31 phessler Exp $ */
/*-
* Copyright (c) 2001 Ross Harvey
@ -87,7 +87,6 @@
* of COPY relocations for WEAK symbols.
*/
#define MD_CRT0_START \
char **environ, *__progname; \
__asm( \
".text \n" \
" .align 0 \n" \