public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/65477] New: gnat is built with nodlopen
@ 2015-03-19 22:25 pavel at zhukoff dot net
2015-03-20 8:43 ` [Bug ada/65477] " pavel at zhukoff dot net
2015-03-20 9:23 ` ebotcazou at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: pavel at zhukoff dot net @ 2015-03-19 22:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65477
Bug ID: 65477
Summary: gnat is built with nodlopen
Product: gcc
Version: 4.9.3
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: pavel at zhukoff dot net
Created attachment 35068
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35068&action=edit
test program
It's not possible to write shared plugins in ada because libgnat (and only
libgnat from gcc) is built with nodlopen option.
Example:
Error: unable to load plugin "~/.weechat/plugins/liblibaweeplug.so":
libgnat-4.9.so: shared object cannot be dlopen()ed
How to reproduce:
Try to dlopen libgnat.so. dlopen returns NULL works fine for libc/libm/etc
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/65477] gnat is built with nodlopen
2015-03-19 22:25 [Bug ada/65477] New: gnat is built with nodlopen pavel at zhukoff dot net
@ 2015-03-20 8:43 ` pavel at zhukoff dot net
2015-03-20 9:23 ` ebotcazou at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pavel at zhukoff dot net @ 2015-03-20 8:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65477
--- Comment #1 from Pavel Zhukov <pavel at zhukoff dot net> ---
This patch works for me:
Build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=9275707
Patch:
diff --git a/gcc/ada/gcc-interface/Makefile.in
b/gcc/ada/gcc-interface/Makefile.in
index b552d3d..69d55aa 100644
--- a/gcc/ada/gcc-interface/Makefile.in
+++ b/gcc/ada/gcc-interface/Makefile.in
@@ -2818,14 +2818,14 @@ gnatlib-shared-default:
gnatlib
$(RM) $(RTSDIR)/libgna*$(soext)
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
- | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z,nodlopen $(GNATLIBCFLAGS) \
+ | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z $(GNATLIBCFLAGS) \
$(PICFLAG_FOR_TARGET) \
-o libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_NONTASKING_OBJS) $(LIBGNAT_OBJS) \
$(SO_OPTS)libgnat$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(MISCLIB) -lm
cd $(RTSDIR); `echo "$(GCC_FOR_TARGET)" \
- | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z,nodlopen $(GNATLIBCFLAGS) \
+ | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'`
-shared -Wl,-z $(GNATLIBCFLAGS) \
$(PICFLAG_FOR_TARGET) \
-o libgnarl$(hyphen)$(LIBRARY_VERSION)$(soext) \
$(GNATRTL_TASKING_OBJS) \
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug ada/65477] gnat is built with nodlopen
2015-03-19 22:25 [Bug ada/65477] New: gnat is built with nodlopen pavel at zhukoff dot net
2015-03-20 8:43 ` [Bug ada/65477] " pavel at zhukoff dot net
@ 2015-03-20 9:23 ` ebotcazou at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-03-20 9:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65477
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ebotcazou at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Please double-check that you're reporting issues for the pristine codebase.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-20 8:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19 22:25 [Bug ada/65477] New: gnat is built with nodlopen pavel at zhukoff dot net
2015-03-20 8:43 ` [Bug ada/65477] " pavel at zhukoff dot net
2015-03-20 9:23 ` ebotcazou at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).