Hi,Guillem

> I assume anything not matching exactly values within OBJABI_MASK
> would not be linkable either. If I'm reading the binutils source
> correctly it seems to confirm this, although the comment there reads
> to be negated:
> 
>     /* Disallow linking different ABIs.  */
>     /* Only check relocation version.
>        The obj_v0 is compatible with obj_v1.  */
> 
> So shouldn't the latter be s/compatible/incompatible/?
> 
> Also is the port going to be ABI v1?

OBJABI is used to determine the version of the obj file to be linked.

For binutils versions below 2.40, as generates OBJABI = obj_v0, and ld can only 
link to the obj_v0.
For binutils versions 2.40 and above, as generates OBJABI = obj_v1, and ld can 
link any obj files of obj_v0 and obj_v1.
The Loongarch code of version 2.40 has been submitted to the binutils upstream, 
and version 2.40 has not been released.

Loongarch ELF ABI specification:
https://github.com/loongson/LoongArch-Documentation/blob/main/docs/LoongArch-ELF-ABI-EN.adoc#e_flags-identifies-abi-type-and-version

thanks,
Dandan Zhang


本邮件及其附件含有龙芯中科的商业秘密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件及其附件中的信息。如果您错收本邮件,请您立即电话或邮件通知发件人并删除本邮件。
 
This email and its attachments contain confidential information from Loongson 
Technology , which is intended only for the person or entity whose address is 
listed above. Any use of the information contained herein in any way 
(including, but not limited to, total or partial disclosure, reproduction or 
dissemination) by persons other than the intended recipient(s) is prohibited. 
If you receive this email in error, please notify the sender by phone or email 
immediately and delete it. 

Reply via email to