Ticket #5435 (new bug)
GHCi linker should run constructors for linked libraries
| Reported by: | pumpkin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.8.1 |
| Component: | Compiler | Version: | 7.2.1 |
| Keywords: | Cc: | howard_b_golden@…, pho@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | #3658 | |
| Blocking: | Related Tickets: | #3658 |
Description
As far as I can tell from my experimentation, any library that contains a function with attribute((constructor)) on it won't have its constructor(s) run when loaded, or its destructors run when unloaded. This violates assumptions that some libraries make.
Change History
Note: See
TracTickets for help on using
tickets.
