On Tue, Oct 07, 2014 at 10:12:22PM +0400, Ilya Verbin wrote: > > And, is __gnu_offload_{funcs,vars} named that way just because the plugin > > isn't able to add > > symbols around the sections for you? As it doesn't contain a dot, it would > > collide > > with user declarations put into __attribute__((section > > ("__gnu_offload_funcs"))). > > Renamed to .gnu.offload_{funcs,vars}. > Automatically provided symbols __start__*, __stop__* don't work with shared > libraries, since the symbols from exec override the respective symbols in dso.
... Thanks. One more thing, I've noticed that running target-1.exe testcase also leaves /tmp/offload_XXXXXX directories around (one for each invocation). That can be useful for debugging, but generally should be cleaned up in __cxa_atexit callback or similar. OT, from the various IRC discussions with Kirill on IRC, it seems you or your colleges typed pretty much all target related tests from OpenMP 4.0.1 examples, can those be also submitted for inclusion in the testsuite? AFAIK we already have the appendix-a/ testcases and had permissions from OpenMP committee to use them, so if we put these into the same directory (sure, it is not appendix-a anymore, but no tests are in that appendix anymore), it would be appreciated. Jakub