diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-07-17 12:09:24 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-07-18 21:43:52 +0000 |
commit | bc028b6b7f0f25fba45e10fa46e3fe91dbe9a76d (patch) | |
tree | 7c8832aa8af9ba27e527ad1c2f640827b68bb4e0 /pod/perlguts.pod | |
parent | f782ee33d0f49cb1ee007e3e83d1f175efc6fdc1 (diff) | |
download | perl-bc028b6b7f0f25fba45e10fa46e3fe91dbe9a76d.tar.gz |
make magic vtables const if PERL_GLOBAL_STRUCT_PRIVATE
Message-ID: <44BB2994.5090609@iki.fi>
p4raw-id: //depot/perl@28599
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index a39c8f9cbc..bbf8742d97 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1914,6 +1914,12 @@ please see F<miniperlmain.c> for usage details. You may also need to use C<dVAR> in your coding to "declare the global variables" when you are using them. dTHX does this for you automatically. +To see whether you have non-const data you can use a BSD-compatible C<nm>: + + nm libperl.a | grep -v ' [TURtr] ' + +If this displays any C<D> or C<d> symbols, you have non-const data. + For backward compatibility reasons defining just PERL_GLOBAL_STRUCT doesn't actually hide all symbols inside a big global struct: some PerlIO_xxx vtables are left visible. The PERL_GLOBAL_STRUCT_PRIVATE |