1227825Stheraven/* $NetBSD: h_abuse_dynamic.c,v 1.1 2023/06/01 22:26:40 riastradh Exp $ */ 2227825Stheraven 3227825Stheraven/*- 4227825Stheraven * Copyright (c) 2023 The NetBSD Foundation, Inc. 5227825Stheraven * All rights reserved. 6227825Stheraven * 7227825Stheraven * Redistribution and use in source and binary forms, with or without 8227825Stheraven * modification, are permitted provided that the following conditions 9227825Stheraven * are met: 10227825Stheraven * 1. Redistributions of source code must retain the above copyright 11227825Stheraven * notice, this list of conditions and the following disclaimer. 12227825Stheraven * 2. Redistributions in binary form must reproduce the above copyright 13227825Stheraven * notice, this list of conditions and the following disclaimer in the 14227825Stheraven * documentation and/or other materials provided with the distribution. 15227825Stheraven * 16227825Stheraven * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17227825Stheraven * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18227825Stheraven * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19227825Stheraven * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20227825Stheraven * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21227825Stheraven * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22227825Stheraven * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23227825Stheraven * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24227825Stheraven * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25227825Stheraven * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26227825Stheraven * POSSIBILITY OF SUCH DAMAGE. 27227825Stheraven */ 28227825Stheraven 29227825Stheravenextern __thread int mydynsym __attribute__((tls_model("initial-exec"))); 30227825Stheraven 31227825Stheravenint *fuse(void); 32227825Stheravenint * 33227825Stheravenfuse(void) 34227825Stheraven{ 35227825Stheraven 36227825Stheraven return &mydynsym; 37227825Stheraven} 38227825Stheraven