This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/63758] liblto_plugin.so has undefined reference to _environ on OSX


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63758

--- Comment #3 from Iain Sandoe <iains at gcc dot gnu.org> ---
I'm not disputing that the code is wrongâ
 â and the change that you've put forward looks reasonable.

However, I'm not finding it easy to reproduce any failure - I've got a cross
from darwin12 => x86-64-linux-gnu with gold-enabled binutils.  

There's no failure at either build-time or runtime for the liblto plugin.

This is not entirely surprising (at least on the host I've tried), since the
plugin is linked with -Wl,-undefined,dynamic_lookup.  This means that _environ
will be resolved from the executable.

So I'm interested in how to reproduce the effect you show in c#1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]