From: kettenis Date: Thu, 27 Jul 2023 18:17:14 +0000 (+0000) Subject: Make _eprol (and _etext) hidden. Fixes "cc -pg" on arm64 where the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=505a4c3431df84a171fd8fa30b28616439059ae7;p=openbsd Make _eprol (and _etext) hidden. Fixes "cc -pg" on arm64 where the current code which has a local _eprol label in the inline asm and a global _eprol declaration results in an incorrect relocation. This also removes an unnecessary relocation on hppa (and possible on other architectures as well). ok guenther@ --- diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c index e3615dfc16d..007c55a5a10 100644 --- a/lib/csu/crt0.c +++ b/lib/csu/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.17 2022/01/12 21:41:06 guenther Exp $ */ +/* $OpenBSD: crt0.c,v 1.18 2023/07/27 18:17:14 kettenis Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -60,7 +60,7 @@ char ***_csu_finish(char **_argv, char **_envp, void (*_cleanup)(void)); #ifdef MCRT0 #include -extern unsigned char _etext, _eprol; +extern __dso_hidden unsigned char _etext, _eprol; #endif /* MCRT0 */ #ifdef RCRT0