Antoninus said:
Why not extract it (ar -x) and see? You can see what symbols are in the
resulting object files by using a program like nm.
500 bytes does seem somewhat small for libm! Guess: the math library is
linked automatically under the Mingw compiler system, and this is a
"dummy library" that only exists to make typical *nix/gcc Makefiles with
"-lm" command lines still work.
Using lcc-win to dump the contents of libm.a conforms your
theory:
Contents of libm.a 492 bytes
Archive header:1
Name:'/ '
Date:' 941967385 (Sun Nov 07 10:36:25 1999) '
User id:'0 '
Group id:'0 '
File Mode:'0 '
File Size:'4 '
First linker member
----- ------ ------
0 (0) symbols contained in the archive <---------look at this
Archive header:2
Name:'_libm_dummy.o/ '
Date:' 941967385 (Sun Nov 07 10:36:25 1999) '
User id:'108 '
Group id:'101 '
File Mode:'100644 '
File Size:'359 '
Offset in file 132 Dump of object file _libm_dummy.o/
Section Table
01 .text PhysAddr: 00000000 VirtAddr: 00000000 0x00000000
raw data offs: 00000 raw data size: 00000 (1 pages)
// 0 bytes for text
02 .data PhysAddr: 00000000 VirtAddr: 00000000 0x00000000
raw data offs: 00000 raw data size: 00000 (1 pages)
// O bytes for data
03 .bss PhysAddr: 00000016 VirtAddr: 00000000 0x00000000
raw data offs: 00000 raw data size: 00000 (1 pages)
// 0 bytes for bss