Greetings everyone, while trying to compile mksh I encountered the following bug:
% cat global_affect.c static int foo; int *var = &foo; int main(void) { foo = 0; return *var; } % tcc -o global_affect global_affect.c % ./global_affect zsh: segmentation fault ./global_affect I might be completely wrong but I have the impression that the problem is that when a symbol value is made pointer, its constant value is not set to its address. As init_putv assume the symbol value pointed at by vtop has a correct constant, it fails. Best regards, Thomas Preud'homme
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel