GHCI and archive libraries.
Sven.Panne at aedion.de
Sat Dec 3 09:29:53 EST 2005
Am Samstag, 3. Dezember 2005 15:17 schrieb Lennart Augustsson:
> And on many platforms (well, at least a few years ago) a "shared"
> library doesn't have to be PIC. The dynamic loader can do relocation
> when it loads the file. (Then it can't be shared.)
> But this was a few years ago on Solaris and BSDs, it could be
> different now.
After a quick look this seems to be the case on current x86 Linux systems,
too: "Real" shared libraries consist of PIC to enhance sharing code at
runtime, but nevertheless the dynamic loader seems to be able to load and
relocate non-PIC, at the cost of less sharing, but often slightly better code
quality. So the mentioned repacking of a static library into a partially
linked object file might work for most common platforms.
More information about the Glasgow-haskell-users