bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

i686-unknown-elf-ld static-variable-related segfault


From: Mateusz Zalega
Subject: i686-unknown-elf-ld static-variable-related segfault
Date: Wed, 24 Oct 2012 13:14:52 +0200

Hello,
ld segfaults when i try to compile and link this:

void printstr(const char* str)
{
        static int boo=2;
        kmemcpy((char*)(pfb), str, kstrlen(str));
        pfb+=80*boo;
}

but everything is alright after deleting the static variable line.

You can download the code from here:
https://github.com/loonquawl/kernelstein/tree/c6281875d3202ec58e1d23cc3378ffcf0fa65057

Thanks.

--
Mateusz "loonquawl" Zalega



reply via email to

[Prev in Thread] Current Thread [Next in Thread]