[fpc-devel] Undefined symbol during linking - any suggestions?
    Gennady Agranov 
    gennadyagranov at gmail.com
       
    Fri Sep 10 01:14:23 CEST 2021
    
    
  
Hi,
Sorry for delay - my first email was rejected because i have attached 
"undefined_symbol.s" uncompressed
I am attaching zip archive with 2 files
undefined_symbol.pas
undefined_symbol.s
*(fpc -Mdelphi -al -Cn undefined_symbol.pas)*
There is line
     leaq    .Lj3222(%rip),%rdx
but I do not see  the label definition :(
Thanks,
Gena
On 9/8/2021 1:39 AM, Sven Barth via fpc-devel wrote:
> Am 08.09.2021 um 06:33 schrieb Gennady Agranov via fpc-devel:
>> Hi,
>>
>> linker complains about undefined symbol  .Lj3016
>>
>> I checked *.s files and found that one file has no label .Lj3016 but 
>> has following line:
>>
>>     leaq       .Lj3016(%rip),%rdx
>>
>> Am I correct that that this *.s file should also have a label?
>
> Yes. Can you show more of what the surrounding code is doing (you 
> should compile with -al so that the code lines are contained there as 
> well if you haven't done so already) and what optimization options are 
> you using for compilation?
>
> Regards,
> Sven
> _______________________________________________
> fpc-devel maillist  - fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210909/ae955f2c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undefined_symbol.zip
Type: application/x-zip-compressed
Size: 117980 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210909/ae955f2c/attachment-0001.bin>
    
    
More information about the fpc-devel
mailing list