Hi Dan,
It doesn't matter that it will never be written to. Since the variable is a
non-const static it will get mapped into the WSD portion of memory.
There are actually a few other global static variables that are getting
placed in the WSD section of memory.
Here is a list of non-const statics that exist even with SQLITE_OMIT_WSD
turned on:
(taken from a .map file)
sqlite3_temp_directory 0x00040d24 Data 4
sqlite3.o(.data)
sqlite3PendingByte 0x00040d20 Data 4
sqlite3.o(.data)
ata...@openstattable_0 0x00040d28 Data 8
sqlite3.o(.data)
MemJournalMethods 0x00040d30 Data 52
sqlite3.o(.data)
smu...@sqlite3defaultmutex_0 0x00040d64 Data 36
sqlite3.o(.data)
defaultmeth...@sqlite3pcachesetdefault_0 0x00040d88 Data 44
sqlite3.o(.data)
detach_f...@sqlite3detach_0 0x00040db4 Data 32
sqlite3.o(.data)
attach_f...@sqlite3attach_0 0x00040dd4 Data 32
sqlite3.o(.data)
a...@sqlite3savepoint_0 0x00040df4 Data 12
sqlite3.o(.data)
-Albert
Dan Kennedy-4 wrote:
>
>
> On May 28, 2010, at 1:11 AM, Kim, Albert wrote:
>
>> Hi,
>>
>> We are compiling sqlite 3.6.23.1 with the SQLITE_OMIT_WSD compile
>> time flag turned on. We are using the amalgamation. We found that
>> this didn't completely eliminate the writable static data in our
>> binary, and some investigation led me to this static variable:
>>
>> SQLITE_PRIVATE VdbeOp *sqlite3VdbeGetOp(Vdbe *p, int addr){
>> static VdbeOp dummy;
>>
>> Is this is a known issue?
>
> That variable will never be written to. A pointer to it
> may be returned to the caller, but the caller will only
> read, never modify the contents of the structure.
>
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
>
--
View this message in context:
http://old.nabble.com/SQLITE_OMIT_WSD-%283.6.23.1%29-tp28705310p28712877.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users