Hello Seighard.

> - considering, that these two _object_ files seem to be multi architacture
> in systems with multi architecture support. 

Not sure to understand.
Do you mean that it exist object_ files that have both ELF32+64 signatures ?
And then only one file could be used in a multi-arch system ?
If so, I did not know that such object_ files exist.

> You're _certain_ that these files are really multi-arch and were not 
> replaced by single-arch files by a previous update? 

Not sure of course.
I am only sure that I did install 2 days ago Linux ManJaro + enabled
multi-arch 64+32.
And running fpc32 on that 64 bit OS raise a error at linking because of
those 2 crti.o and crtn.o files.

> BTW, on my system, the lib32-versions of crti.o and crtn.o evidently are
> _not_ multi-arch, but 32bit only. 

Here also on Manjaro (Arch OS) the 32 bit crti.o and crtn.o are in
/usr/lib32 and do have a ELF signature of 32 bit.
And crti.o and crtn.o that are in /lib (smartlink to /usr/lib ) are clearly
64 bit (but maybe I miss something about ELF64+32)

Now only for the sport, I would like to understand why those
/usr/lib/crti.o+crtn.o (with 64 bit ELF sign) are used by fpc.

Take a look at fpc source t_linux.pas line 508 :

StartSection('INPUT(');
 if linklibc and (libctype<>uclibc) then
       begin
         { crti.o must come first }
         if librarysearchpath.FindFile('crti.o',false,s) then // NOT GOOD,
WHY ?
           AddFileName(s)
         else
           Message1(exec_w_init_file_not_found,'crti.o'); 
 
  { then the crtbegin* }
         if cs_create_pic in current_settings.moduleswitches then
           begin
             if librarysearchpath.FindFile('crtbeginS.o',false,s) then //
HERE GOOD, LIKE ALL OTHERS
               AddFileName(s)
             else
               Message1(exec_w_init_file_not_found,'crtbeginS.o');
           end
         else
....

Why librarysearchpath assign a ELF 64 to crti.o' (and ctri.o)  but the good
ELF 32 to all others ?

Strange...

By the way, many thanks Seighard for your attention.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to