diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-07-27 18:17:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2023-07-27 18:17:15 +0000 |
commit | 639c2a33745e72aa25bf396a1ae729cae80a5e34 (patch) | |
tree | aa7e7b6d3103f684fb497502f3c7560391606828 /lib/csu/crt0.c | |
parent | a77c0cae7b5af8c031e2e6245ed0c5636c10edf5 (diff) |
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@
Diffstat (limited to 'lib/csu/crt0.c')
-rw-r--r-- | lib/csu/crt0.c | 4 |
1 files 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 <sys/gmon.h> -extern unsigned char _etext, _eprol; +extern __dso_hidden unsigned char _etext, _eprol; #endif /* MCRT0 */ #ifdef RCRT0 |