Author vstinner
Recipients loewis, pitrou, steve.dower, tim.golden, twouters, vstinner, zach.ware
Date 2015-03-17.16:44:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426610642.52.0.375270727154.issue23685@psf.upfronthosting.co.za>
In-reply-to
Content
builtin_modules.patch: add _PyBUILTIN_MODINIT_FUNC macro and use it on modules which are builtins on POSIX.

I checked: it's not necessary to modify Modules/config.c to make the symbol hidden: only the C code in Modules/ need to set the attribute on the function.

So Modules/config.c, Modules/config.c.in, Modules/makesetup, PC/config.c, Tools/freeze/makeconfig.py, ... are unchanged by the patch.

--

On Linux with GCC >= 4.0, you can test manually to hide PyInit_xxx symbols using:

#define _PyBUILTIN_MODINIT_FUNC __attribute__((visibility("hidden"))) PyObject*
History
Date User Action Args
2015-03-17 16:44:02vstinnersetrecipients: + vstinner, loewis, twouters, pitrou, tim.golden, zach.ware, steve.dower
2015-03-17 16:44:02vstinnersetmessageid: <1426610642.52.0.375270727154.issue23685@psf.upfronthosting.co.za>
2015-03-17 16:44:02vstinnerlinkissue23685 messages
2015-03-17 16:44:02vstinnercreate