Comment 2 for bug 457575

Revision history for this message
Horst Schirmeier (horst) wrote :

binutils-gold seems to generally produce nonsense output on Ubuntu (tested on Lucid Beta 1): Installing binutils-gold and then trying to compile and link a simple C program gets you a dysfunctional binary. I'm not sure whether this should be reported upstream, or this is a Ubuntu problem.

cat > foo.c
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
    printf("worked: %d\n", strcmp(argv[1], argv[2]));
    return 0;
}
^D

gcc -o foo foo.c
./foo x x
Segmentation fault

(Debugging reveals that the crash happens in strcmp.)