Compiler does not export functions
Original Reporter info from Mantis: MageSlayer @MageSlayer
-
Reporter name: Denis Golovan
Original Reporter info from Mantis: MageSlayer @MageSlayer
- Reporter name: Denis Golovan
Description:
Hi
After recent update to latest FPC trunk version (r24454) I found that fpc does not export functions from executable any longer. Previous revision of 2.7.1 I used worked ok.
Tested under Linux 32 bit.
Steps to reproduce:
Try to compile a small console app in additional information and run:
$ nm project1 | grep "T f1"
... latest version show nothing while 2.6.0 (and some previous 2.7.1 version) emits something like:
080480e0 T f1
Additional information:
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ you can add units after this };
procedure f1;
begin
end;
exports
f1;
begin
end.
Mantis conversion info:
- Mantis ID: 24396
- Platform: Linux
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 24465 (#b16677a7)
- Target version: 3.0.0