From 505a4c3431df84a171fd8fa30b28616439059ae7 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 27 Jul 2023 18:17:14 +0000 Subject: [PATCH] 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@ --- lib/csu/crt0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1