This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Avoid -Wl,-z,nodlopen (PR libgomp/28482)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 May 2007 10:17:44 -0700
- Subject: Re: [gomp] Avoid -Wl,-z,nodlopen (PR libgomp/28482)
- References: <20070502161941.GG355@devserv.devel.redhat.com>
On Wed, May 02, 2007 at 12:19:41PM -0400, Jakub Jelinek wrote:
> I wonder if we additionally shouldn't change DATA_ALIGMENT on i386 (well,
> we'd need a new macro so that the actual decl rather than type is passed)
> to also take DECL_THREAD_LOCAL_P into account, TLS space is precious
> and wasting bytes this way there is weird.
I agree, and that would prevent having to hack the alignment of
the variable in the library.
> * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
I'm not fond of this, despite the python example recently posted
to the list. I think it's a good measure to help keep users from
shooting themselves in the foot.
I don't know how I'd want to solve this problem though -- linking
libgomp into the main python executable seems particularly heavyweight.
I guess I'll accept this, if others think it's a good idea.
r~