Exporting new libgomp functions

Amittai Aviram amittai.aviram@yale.edu
Thu Jan 13 00:36:00 GMT 2011


On Jan 12, 2011, at 5:49 PM, Ian Lance Taylor wrote:

> Amittai Aviram <amittai.aviram@yale.edu> writes:
> 
>>> What does readelf -s libgomp.so show you about the symbol foo?
>> 
>> It does not occur in either lib32/libgomp.so or lib64/libgomp.so
> 
> Are you 100% sure that your new object file is getting linked into
> libgomp.so?  The symbol should be in .symtab even if it is hidden by the
> version script.
> 
> Ian


I just tried a further experiment.  One of my source code files is called domp_team.c, and it defines, among others, domp_get_num_threads, which is one of the names I had listed in the OMP_1.0 block in libgomp.map under "global."  I copied the entire contents of domp_team.c and inserted it at the bottom of the standard libgomp/team.c, took domp_team.c out of my Makefile.am, recreated my Makefile.in (as described in my last message), reconfigured, and rebuilt.  _Still_, if I go to my the directory holding libgomp.so and enter

$ readelf -s libgomp.so | grep "domp_"

then the response is empty—none found.


Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com



More information about the Gcc-help mailing list