Re: [PATCH PR 63758] fix liblto_plugin.so undefined _environ reference on OSX host

2014-11-06 Thread Mike Stump
On Nov 5, 2014, at 4:25 PM, Roland McGrath mcgra...@google.com wrote: As I described in the bug, OSX (as documented) does not permit shared libraries to refer directly to the environ global variable. OK for trunk and 4.9 branch? For the darwin bits I can approve, Ok.

[PATCH PR 63758] fix liblto_plugin.so undefined _environ reference on OSX host

2014-11-05 Thread Roland McGrath
As I described in the bug, OSX (as documented) does not permit shared libraries to refer directly to the environ global variable. Instead, they must call the function _NSGetEnviron to get the address of environ. This becomes a problem when some libiberty code that uses environ directly gets