0

the .a file and the .so file

enter image description here

the CMakeLists.txt

enter image description here

Anurag Dabas
  • 23,866
  • 9
  • 21
  • 41
Ethan
  • 1
  • 2
  • 1
    Please don't post pictures of code. Is is possible that all the real object code is in the .so file, and the .a file is simply the stub library used for linking? – selbie Mar 04 '21 at 07:06
  • Does this answer your question? [File format differences between a static library (.a) and a shared library (.so)?](https://stackoverflow.com/questions/41879433/file-format-differences-between-a-static-library-a-and-a-shared-library-so) – jordanvrtanoski Mar 07 '21 at 13:00

1 Answers1

0

My guess is that .a file is a simple archive format for .o object files (which in turn are more or less a result of converting textual assembly into binary), while .so is a full-fledged ELF binary, which contains additional data sections and meta-data in the header.

arrowd
  • 33,231
  • 8
  • 79
  • 110