Segmentation fault while dynamic linking
Michael Habermann
MHabermann at gmx.de
Tue Jun 26 19:32:38 EST 2001
The simple program below produces a segmentation fault when dynamically
linked. When linked with '--static', it works fine.
What can be the problem?
The Segmentation Fault occurs at a lot of programs like busyboxes 'ls' and
unfortnately also at gdbserver.
My configuration: Kernel 2.4.4, glibc 2.2.2, bash 2.05, FADS, MPC855T
#include <stdio.h>
#include <time.h>
int main(int argc, char** argv){
time_t tm;
time(&tm);
printf("This line is displayed\n");
localtime(&tm); //produces Segmentation fault
printf("This one not\n");
return 0;
}
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list