1*05e97b5aSriastradh /* $NetBSD: h_use_dynamic.c,v 1.1 2023/06/01 20:50:19 riastradh Exp $ */
2*05e97b5aSriastradh
3*05e97b5aSriastradh /*-
4*05e97b5aSriastradh * Copyright (c) 2023 The NetBSD Foundation, Inc.
5*05e97b5aSriastradh * All rights reserved.
6*05e97b5aSriastradh *
7*05e97b5aSriastradh * Redistribution and use in source and binary forms, with or without
8*05e97b5aSriastradh * modification, are permitted provided that the following conditions
9*05e97b5aSriastradh * are met:
10*05e97b5aSriastradh * 1. Redistributions of source code must retain the above copyright
11*05e97b5aSriastradh * notice, this list of conditions and the following disclaimer.
12*05e97b5aSriastradh * 2. Redistributions in binary form must reproduce the above copyright
13*05e97b5aSriastradh * notice, this list of conditions and the following disclaimer in the
14*05e97b5aSriastradh * documentation and/or other materials provided with the distribution.
15*05e97b5aSriastradh *
16*05e97b5aSriastradh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17*05e97b5aSriastradh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18*05e97b5aSriastradh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19*05e97b5aSriastradh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20*05e97b5aSriastradh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21*05e97b5aSriastradh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22*05e97b5aSriastradh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23*05e97b5aSriastradh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24*05e97b5aSriastradh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25*05e97b5aSriastradh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26*05e97b5aSriastradh * POSSIBILITY OF SUCH DAMAGE.
27*05e97b5aSriastradh */
28*05e97b5aSriastradh
29*05e97b5aSriastradh extern __thread int mydynsym;
30*05e97b5aSriastradh
31*05e97b5aSriastradh int *fuse(void);
32*05e97b5aSriastradh int *
fuse(void)33*05e97b5aSriastradh fuse(void)
34*05e97b5aSriastradh {
35*05e97b5aSriastradh
36*05e97b5aSriastradh return &mydynsym;
37*05e97b5aSriastradh }
38