View Issue Details

IDProjectCategoryView StatusLast Update
0035592FPCCompilerpublic2019-05-17 18:04
ReporterKlaus1Assigned ToMarco van de Voort 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.0.4Product Build 
Target VersionFixed in Version 
Summary0035592: Link from a extern obj file (assembled with yasm) give a error for undefined symbol (entry point the routine)
DescriptionThe entry point in the assembler routine is defined sha256_sse4, but the compiler expexted follow entry point in the procedure; SHA256_$$_SHA256_SSE4$POINTER$THASHS256$INT64.
The routine is in fpc declared as EXTERNAL with {$L sha256_sse4.obj} and I think the compiler can not change
the entry point for a external procedure. Also the mark with an alias: 'sha256_sse4' does not help.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Marco van de Voort

2019-05-16 21:06

manager   ~0116222

Last edited: 2019-05-17 15:49

View 2 revisions

without an reproducable example, and the target info, there is not much we can do.

What does nm <obj file> show?

Jonas Maebe

2019-05-17 18:04

manager   ~0116237

"external" has no effect on name mangling. You can either specify the name yourself via "external name" (https://www.freepascal.org/docs-html/3.0.0/ref/refse94.html), or if the naming convention follows that standard C compiler name mangling, using "cdecl; external;". If you have further questions, please ask them on the mailing list or fora.

Issue History

Date Modified Username Field Change
2019-05-16 20:33 Klaus1 New Issue
2019-05-16 21:06 Marco van de Voort Assigned To => Marco van de Voort
2019-05-16 21:06 Marco van de Voort Status new => feedback
2019-05-16 21:06 Marco van de Voort FPCTarget => -
2019-05-16 21:06 Marco van de Voort Note Added: 0116222
2019-05-17 15:49 Marco van de Voort Note Edited: 0116222 View Revisions
2019-05-17 18:04 Jonas Maebe Status feedback => resolved
2019-05-17 18:04 Jonas Maebe Resolution open => no change required
2019-05-17 18:04 Jonas Maebe Note Added: 0116237