Subject: Changing ABI version To: yocto@lists.yoctoproject.org From: "MikeB" X-Originating-Location: Raleigh, North Carolina, US (107.13.78.59) X-Originating-Platform: Windows Chrome 83 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 03 Jul 2020 02:44:28 -0700 Message-ID: Content-Type: multipart/alternative; boundary="j5GEGlXVsVueJZVv0KFv" --j5GEGlXVsVueJZVv0KFv Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I'm in the process of upgrading from Zeus to Dunfell.=C2=A0 For my MIPS pla= tform, the library ABI version has changed from 0 to 5.=C2=A0 I have some b= ackward compatibility issues that require generating at least some librarie= s with ABI version 0.=C2=A0 I've tried using -fabi_version=3D0 in my CCFLAG= S, but that seems to be ignored.=C2=A0 Can someone tell me how to set the A= BI version back to 0 in my image and SDK? I'm building for a custom MIPs platform running on a Cavium Octeon II in 3= 2-bit mode. TUNE_FEATURES=C2=A0 =3D "o32 bigendian fpu-hard octeon2" A current Dunfell shared library ELF Header looks like this: ELF Header: Magic:=C2=A0 =C2=A07f 45 4c 46 01 02 01 00 05 00 00 00 00 00 00 00 Class:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ELF32 Data:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2's complement, big endian Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 (current) OS/ABI:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UNIX - System V ABI Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A05 Type:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DYN (Shared object file) Machine:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MIPS R3000 Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x1 Entry point address:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A00x1630 Start of program headers:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 52 (bytes into= file) Start of section headers:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 22488 (bytes i= nto file) Flags:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x808d1107, noreorder, pic, cpic, 32= bitmode, octeon2, o32, mips64r2 The same library built with Zeus looks like this. ELF Header: Magic:=C2=A0 =C2=A07f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00 Class:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ELF32 Data:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2's complement, big endian Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 (current) OS/ABI:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 UNIX - System V ABI Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A00 Type:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 DYN (Shared object file) Machine:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MIPS R3000 Version:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= = =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x1 Entry point address:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A00x1500 Start of program headers:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 52 (bytes into= file) Start of section headers:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 22340 (bytes i= nto file) Flags:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x808d1107, noreorder, pic, cpic, 32= bitmode, octeon2, o32, mips64r2 The ABI Version being the issue. Thanks. --j5GEGlXVsVueJZVv0KFv Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable I'm in the process of upgrading from Zeus to Dunfell.  For my MIPS pla= tform, the library ABI version has changed from 0 to 5.  I have some b= ackward compatibility issues that require generating at least some librarie= s with ABI version 0.  I've tried using -fabi_version=3D0 in my CCFLAG= S, but that seems to be ignored.  Can someone tell me how to set the A= BI version back to 0 in my image and SDK?

I'm building for a cus= tom MIPs platform running on a Cavium Octeon II in 32-bit mode.

= TUNE_FEATURES  =3D "o32 bigendian fpu-hard octeon2"

A curre= nt Dunfell shared library ELF Header looks like this:

ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 05 00 00 00 00 00 0= 0 00 
  Class:                =              ELF32
  Data:                &= nbsp;             2's complement, big endian<= /div>
  Version:               = ;            1 (current)
  OS/ABI:               =             UNIX - System V
  ABI Version:              &= nbsp;        5
  Type:                &= nbsp;             DYN (Shared object file)
  Machine:               = ;            MIPS R3000
  Version:               = ;            0x1
  Entry point address:            =    0x1630
  Start of program headers:          52= (bytes into file)
  Start of section headers:          22= 488 (bytes into file)
  Flags:                =              0x808d1107, noreorder, pic,= cpic, 32bitmode, octeon2, o32, mips64r2

The same library built with Zeus looks like this.

ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 0= 0 00 
  Class:                =              ELF32
  Data:                &= nbsp;             2's complement, big endian<= /div>
  Version:               = ;            1 (current)
  OS/ABI:               =             UNIX - System V
  ABI Version:              &= nbsp;        0
  Type:                &= nbsp;             DYN (Shared object file)
  Machine:               = ;            MIPS R3000
  Version:               = ;            0x1
  Entry point address:            =    0x1500
  Start of program headers:          52= (bytes into file)
  Start of section headers:          22= 340 (bytes into file)
  Flags:                =              0x808d1107, noreorder, pic,= cpic, 32bitmode, octeon2, o32, mips64r2
 
The ABI Version being the issue.

Thanks. --j5GEGlXVsVueJZVv0KFv--