Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery]Static base spells

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: julian AT openit.de (Julian v. Bock)
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery]Static base spells
  • Date: Fri, 29 Nov 2002 13:02:36 +0100

Hi

>>>>> "AvM" == Arwed von Merkatz <v.merkatz AT gmx.net> writes:

AvM> Ok, it's not as bad as i thought, i just compiled a static bash
AvM> and checked it. Since static linking doesn't include the libc,

Er, what??

Static linking does include glibc (if you refer to the -static gcc/ld
option). Only the object files which are referenced are included
though. (static libraries are just ar archives of object files with a
table of exported symbols).

You can of course link both static and shared libraries into an
executable, but the result is still a dynamically linked executable.

Check your bash with file. If file says something like
'ELF 32-bit LSB executable, Intel 80386, version 1, statically linked'
your bash includes the libc.

Julian




Archive powered by MHonArc 2.6.24.

Top of Page