finalization section in x86_64 shared libraries is not executed
Original Reporter info from Mantis: werner.bochtler@zkrd.de
-
Reporter name: Werner Bochtler
Original Reporter info from Mantis: werner.bochtler@zkrd.de
- Reporter name: Werner Bochtler
Description:
In 64 bit shared libraries (LINUX) the finalization section is not executed.
The attached demo works as expected using FPC 2.4.4 in a 32-bit environment i.e. the application writes the following 3 lines to STDOUT:
"initialization done"
"Main"
"finalization done"
Using FPC 2.4.4 (64 bit) the last line is missing.
Steps to reproduce:
Compile library in Library folder
Install library
Compile application in Application folder
Execute application
Mantis conversion info:
- Mantis ID: 19781
- OS: Linux
- OS Build: 2.6.32.36
- Platform: x86_64
- Version: 2.4.4
- Fixed in revision: 19036 (#9ce34c63)
- Target version: 2.7.1