I have some generated object files, from which I create a static library using:
ar -r libmine.a *.o
Afterwards I'm adding the index through:
ar -s libmine.a
How can compare first command with second command and what additional functions gives me that index?
After use this command:
ar -r libmine.a *.o
i used this:
nm -s libmine.a
and i get:
Archive index:
add in add.o
mul in mul.o
sub in sub.o
add.o:
0000000000000000 T add
mul.o:
0000000000000000 T mul
sub.o:
0000000000000000 T sub
I do next step ar -s libmine.a
and after nm -s libmine.a
i get the same output. Why? ar -r
consists ar -s
?