mdbx: avoid large '.data' section in mdbx_chk.

Initializes walk-array in runtime, for placing it
in the '.bss' section instead of '.data'.

Change-Id: I5bd1d9cabd2094f8ae517d91488840ce12844bfa
This commit is contained in:
Leo Yuriev 2016-11-26 23:54:38 +03:00
parent ae61e9ebdf
commit ff70f5feb0

View File

@ -74,9 +74,13 @@ struct {
short *pagemap;
size_t total_payload_bytes;
size_t pgcount;
} walk = {
.dbi_names = { "@gc" }
};
} walk;
static __attribute__((constructor))
void init_walk(void)
{
walk.dbi_names[0] = "@gc";
}
size_t total_unused_bytes;
int exclusive = 2;