diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-08-26 00:21:26 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-08-27 15:47:13 -0400 |
commit | 3b813b29653a3ebfd78c2529127a9967d8f2857d (patch) | |
tree | bb6c6ae204f8d88666e501c7732c7bf6115b4761 /dlfcn/Makefile | |
parent | 7f9d00341057eb80b43fa83956b8d7798b4dabea (diff) | |
download | glibc-3b813b29653a3ebfd78c2529127a9967d8f2857d.zip glibc-3b813b29653a3ebfd78c2529127a9967d8f2857d.tar.gz glibc-3b813b29653a3ebfd78c2529127a9967d8f2857d.tar.bz2 |
[BZ #15897] dlfcn: do not mark dlopen/dlclose as leaf functions
Since the dlopen funcs might invoke a constructor that calls a func
that is in the same compilation unit as the caller, we cannot mark
them as leaf funcs.
Similarly, dlclose might invoke a destructor that calls a func that
is in the same compilation unit as the caller.
URL: https://sourceware.org/bugzilla/show_bug.cgi?id=15897
Reportedy-by: Fabrice Bauzac <libnoon@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'dlfcn/Makefile')
-rw-r--r-- | dlfcn/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dlfcn/Makefile b/dlfcn/Makefile index 57a7271..f3c6df9 100644 --- a/dlfcn/Makefile +++ b/dlfcn/Makefile @@ -35,12 +35,13 @@ endif ifeq (yes,$(build-shared)) tests = glrefmain failtest tst-dladdr default errmsg1 tstcxaatexit \ bug-dlopen1 bug-dlsym1 tst-dlinfo bug-atexit1 bug-atexit2 \ - bug-atexit3 tstatexit + bug-atexit3 tstatexit bug-dl-leaf endif modules-names = glreflib1 glreflib2 glreflib3 failtestmod defaultmod1 \ defaultmod2 errmsg1mod modatexit modcxaatexit \ bug-dlsym1-lib1 bug-dlsym1-lib2 bug-atexit1-lib \ - bug-atexit2-lib bug-atexit3-lib + bug-atexit2-lib bug-atexit3-lib bug-dl-leaf-lib \ + bug-dl-leaf-lib-cb failtestmod.so-no-z-defs = yes glreflib2.so-no-z-defs = yes @@ -132,3 +133,8 @@ $(objpfx)bug-atexit2.out: $(objpfx)bug-atexit2-lib.so LDLIBS-bug-atexit3-lib.so = -lstdc++ -lgcc_eh $(objpfx)bug-atexit3: $(libdl) $(objpfx)bug-atexit3.out: $(objpfx)bug-atexit3-lib.so + +$(objpfx)bug-dl-leaf: $(objpfx)bug-dl-leaf-lib.so +$(objpfx)bug-dl-leaf.out: $(objpfx)bug-dl-leaf-lib-cb.so +$(objpfx)bug-dl-leaf-lib.so: $(libdl) +$(objpfx)bug-dl-leaf-lib-cb.so: $(objpfx)bug-dl-leaf-lib.so |