mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-29 04:21:26 +01:00
d9c543b6b0
This tests that with RTLD_DEEPBIND, symbols are looked up in all of the object's needed objects before the global object. PR: 275393 Reviewed by: kib Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D42843
29 lines
327 B
C
29 lines
327 B
C
/*-
|
|
*
|
|
* Copyright (C) 2023 NetApp, Inc.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
int get_value(void);
|
|
int proxy_get_value(void);
|
|
void set_value(int);
|
|
void proxy_set_value(int);
|
|
|
|
int
|
|
proxy_get_value(void)
|
|
{
|
|
|
|
return (get_value());
|
|
}
|
|
|
|
void
|
|
proxy_set_value(int val)
|
|
{
|
|
|
|
return (set_value(val));
|
|
}
|