Patch: set value of static variables in cipher/random.c
Werner Koch
wk at gnupg.org
Mon Jul 10 12:24:06 CEST 2006
On Fri, 7 Jul 2006 21:55, Marcus Brinkmann said:
> Oh, and there is still a difference between "int foo = 0;" and "int
> foo;". The former allocates a variable in the BSS segment, but the
> latter only defines a SHN_COMMON symbol, which is only allocated in
However we were talking about static allocation; there it is not the
case.
BTW, common symbols are not defined by the C standard but very common
with most linkers. The RISC OS linker for example don't support them.
Salam-Shalom,
Werner
More information about the Gcrypt-devel
mailing list