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

[MiNT] ld -r -o problem ??



Vincent,

Another question, not sure if this is right, but with the following test
I get some unexpected output.

For example a sample such as...

test()
{
}

then compile with

gcc -c test.c

which gives test.o and run...

nm test.o

gives 

00000000 T _test

So far so, good. Now, do...

ld -r -o test.so test.o

and I get....

00000000 T _test
00000000 t test.o

Notice the "test.o" as a symbol. I don't get that on Linux, and
wondering why that happens ?

Alan.