Skip to content

Commit

Permalink
_dl_iterate_phdr_locked(): fix libc and libdl
Browse files Browse the repository at this point in the history
Add prototype.  Export from libdl.

Fixes:	1426fd6
Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
Differential revision:	https://reviews.freebsd.org/D47563
  • Loading branch information
kostikbel committed Nov 14, 2024
1 parent 3cc3d71 commit 209fd89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libc/gen/dlfcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ dl_init_phdr_info(void)
#endif

#pragma weak _dl_iterate_phdr_locked
int _dl_iterate_phdr_locked(int (*callback)(struct dl_phdr_info *,
size_t, void *), void *data);
int
_dl_iterate_phdr_locked(
int (*callback)(struct dl_phdr_info *, size_t, void *) __unused,
Expand Down
4 changes: 4 additions & 0 deletions lib/libdl/Symbol.map
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ FBSD_1.8 {
rtld_get_var;
rtld_set_var;
};

FBSDprivate_1.0 {
_dl_iterate_phdr_locked;
};

0 comments on commit 209fd89

Please sign in to comment.