This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Giant executables.. what am I doing wrong?


> If you run 'nm' on your pre-stripped executable you will see all the
> compiled in functions from the C library and any other libraries. When you
> do a static compile it doesn't just include only the needed function(s),
but
> the entire C library .a file. That's why I recommended going with a
smaller
      ^^^^^^^^^^^^^^^^^^^^^^^^


Whoops. That's not entirely correct. Only all the other functions in the C
object file that the needed function happened to be in.

--josh



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]