diff options
author | Andrea Corallo <akrl@sdf.org> | 2021-12-15 15:47:14 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-12-15 15:55:01 +0100 |
commit | e6b93245fe41731173854e48441614881478c9cf (patch) | |
tree | 76fe619400dbdb44ae08300e5c3dcefe9089f59f /src/dynlib.h | |
parent | 5a057f6716e6991a60968e48f849da57a0339735 (diff) | |
download | emacs-e6b93245fe41731173854e48441614881478c9cf.tar.gz emacs-e6b93245fe41731173854e48441614881478c9cf.tar.bz2 emacs-e6b93245fe41731173854e48441614881478c9cf.zip |
Have 'dlopen' use RTLD_GLOBAL in 'dynlib_open'
* src/pdumper.c (dump_do_dump_relocation): Use 'dynlib_open_for_eln'
in place of 'dynlib_open'.
* src/dynlib.h (dynlib_open_for_eln): Declare it.
* src/dynlib.c (dynlib_open_for_eln): New function.
(dynlib_open): Add RTLD_GLOBAL.
* src/comp.c (Fnative_elisp_load): Use 'dynlib_open_for_eln' in place
of 'dynlib_open'.
Diffstat (limited to 'src/dynlib.h')
-rw-r--r-- | src/dynlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dynlib.h b/src/dynlib.h index e20d8891a23..05ba7981226 100644 --- a/src/dynlib.h +++ b/src/dynlib.h @@ -24,6 +24,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ typedef void *dynlib_handle_ptr; dynlib_handle_ptr dynlib_open (const char *path); +dynlib_handle_ptr dynlib_open_for_eln (const char *path); int dynlib_close (dynlib_handle_ptr h); const char *dynlib_error (void); |