Changes between Version 1 and Version 2 of DynamicLinking
- Timestamp:
- 12/11/06 04:45:18 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DynamicLinking
v1 v2 33 33 == x86 and powerpc32 ELF/Linux TODO == 34 34 35 The NCG works. There are a few situations (floating-point constants, ?CmmSwitch) where the x86 NCG doesn't generate truly position-independent code yet, but dynamic linking will still work. 36 37 Support for `-fPIC` in the mangler is buggy on PowerPC and nonexistent on x86. Due to the strange way that dynamic linking is implemented, it will be very hard to generate position-dependent code that correctly links to (Haskell code in) dynamic libraries without the NCG. 35 The NCG works. Support for `-fPIC` in the mangler is buggy on PowerPC and nonexistent on x86. Due to the strange way that dynamic linking is implemented, it will be very hard to generate position-dependent code that correctly links to (Haskell code in) dynamic libraries without the NCG. 38 36 39 37 As the RTS can't currently be compiled with the NCG (a volunteer opportunity!), the RTS has to be compiled as position dependent code. … … 44 42 45 43 When building a DLL, you have to specify which libraries it depends on; the build system will need to support this. There is a lot of code for building DLLs in the Makefiles, but it probably no longer works and needs to be merged with the new shared library building support. 44 45 Also, since the last time that DLLs worked with GHC on Windows, the GNU linker has gained a new feature. It can now "auto-import" data from shared libraries, making all the windows-specific hacks unnecessary. However, auto-imported data will prevent all sharing of code between processes, every page of code with a reference to data will get written to at load time. 46 46 47 47 == Darwin TODO ==
