Skip to content
Tcl Source Code Artifact [63b813f3c6]
Login

Artifact [63b813f3c6]

Artifact 63b813f3c673e2f4427b57fa2a8c0f36bf6a5b35:

Ticket change [63b813f3c6] - Ticket [2959713fffffffff|2959713fff] <i>Link error with gcc 4.1</i> status still Open with 4 other changes by kennykb on 2010-02-27 00:04:05.
D 2010-02-27T00:04:05
J icomment In\sgcc\s4.1,\sit\sis\snot\svalid\sto\sinitialise\sa\sdata\sitem\swith\sa\spointer\sto\san\sexported\sdata\sitem.\s(It\sis\sall\sright\sto\suse\sa\spointer\sto\san\sexported\sfunction\sor\sa\spointer\sto\sa\sdata\sitem\sat\smodule\sor\sstatic\sscope.)\sThe\sproblem\scan\sbe\sworked\saround\sby\susing\s-Wl,-Bsymbolic\son\sthe\slink\sflags,\sbut\sthat\sapproach\sshould\snot\sbe\sadopted\swithout\sfurther\sthought:\ssee\shttp://software.intel.com/en-us/articles/performance-tools-for-software-developers-bsymbolic-can-cause-dangerous-side-effects/\sfor\ssome\sof\sthe\spitfalls.\sAlternatively,\sthe\sscope\sof\sthe\sStubs\stables\scan\sbe\srestricted:\sthe\sattached\spatch\sto\stools/genStubs.tcl\spuls\sit\sback\sto\sMODULE_SCOPE.\n\nDonal\sFellows\sand\sI\sdiscussed\sthe\scorrect\slinkage\sfor\stclTomMathStubs\sand\stclOOStubs,\sand\swe\sbelieve\sthat\sboth\sof\sthose\stables\sought\sto\sbe\s'static'\sunless\sthere's\ssomething\sthat\syou\sneed\sto\sdo\swith\sthem\sthat\swe\sfail\sto\scomprehend.\sIn\sany\scase,\sI\sdon't\sunderstand\swhat\syou're\strying\sto\sdo\swith\sthe\scode\sthat\smarks\sthem\s'static'\sif\sthey\shave\ssubinterfaces\sand\s'extern'\sotherwise.\sIn\sany\scase,\s'extern'\sis\swrong:\sall\ssymbols\sexported\sfrom\sthe\sshared\slibrary\sshould\sbe\sEXTERN,\sand\sall\ssymbols\sinternal\sto\sit\sshould\sbe\sMODULE_SCOPE.\n\nThe\sattached\spatch\sattempts\sto\sbe\sconservative:\sit\smakes\sthe\ssharing\sas\swide\sas\spossible\swhile\sstill\slinking\ssuccessfully.\sI'd\salso\srequest\sthat\syou\sadd\ssome\scommentary\sin\sgenStubs.tcl\sgiving\sthe\srest\sof\sus\ssome\sindication\swhat\syou're\strying\sto\sdo.\sThe\schange\sto\smake\sthe\stables\sexternal\srather\sthan\sstatic\sseems\ssomewhat\sgratuitous,\sand\sof\scourse\shas\sbeen\sobserved\sto\sbreak\sat\sleast\sone\sbuild.\n
J login kennykb
J mimetype text/plain
J username kennykb
K 2959713fffffffffffffffffffffffffffffffff
U kennykb
Z 40f7e74cfe7db55d5e93a185e1acdd58