summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-11-13 21:51:05 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-11-13 21:51:05 +0000
commit1b761da054f5d005d7184f5cd6e2e5ec70fb19e1 (patch)
tree4219a5fbdf44a8871ace4ca807a9f92fe87d1c72
parent1d1d3e4c6229a01fcb26d2c084f94b587825faed (diff)
move weak definition to the bottom due to a gas problem on a.out platforms.
-rw-r--r--regress/libexec/ld.so/weak/libweak/weak.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/libexec/ld.so/weak/libweak/weak.c b/regress/libexec/ld.so/weak/libweak/weak.c
index daa575c3d10..39736cd96c5 100644
--- a/regress/libexec/ld.so/weak/libweak/weak.c
+++ b/regress/libexec/ld.so/weak/libweak/weak.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: weak.c,v 1.1 2002/02/10 22:51:41 fgsch Exp $ */
+/* $OpenBSD: weak.c,v 1.2 2002/11/13 21:51:04 fgsch Exp $ */
/*
* Public domain. 2002, Federico Schwindt <fgsch@openbsd.org>.
@@ -7,10 +7,10 @@
#include <sys/cdefs.h>
#include "defs.h"
-__weak_alias(func,weak_func);
-
int
weak_func()
{
return (WEAK_REF);
}
+
+__weak_alias(func,weak_func);