Library INITIALIZATION and FINALIZATION sections are not called under Linux
Original Reporter info from Mantis: Almindor
-
Reporter name: Ales Katona
Original Reporter info from Mantis: Almindor
- Reporter name: Ales Katona
Description:
If you write a library with "initialization" and "finalization" sections, and use this library from a FPC program, the init and fini sections don't get called. See example programs attached:
just do "make" in the directory. Then "export LD_LIBRARY_PATH=./" and run ./ctest and ./ptest. As you can see the pascal one doesn't call INIT or FINI. The C one calls INIT but not FINI.
Mantis conversion info:
- Mantis ID: 9089
- OS: Linux
- OS Build: 2.6
- Platform: x86_32
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 10664 (#0c047f17)
- Monitored by: » sethdgrover@gmail.com (Seth Grover)