This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=b377ba3daf475228764fbba0bf6502c132e0b9bd commit b377ba3daf475228764fbba0bf6502c132e0b9bd Author: Guillem Jover <[email protected]> AuthorDate: Tue Apr 25 03:50:43 2023 +0200 Dpkg::Shlibs::Objdump: Add RISC-V ELF ABI tracking At least GNU binutils does not allow linking objects with different float ABIs, nor linking RVE and non-RVE objects. --- scripts/Dpkg/Shlibs/Objdump.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/Dpkg/Shlibs/Objdump.pm b/scripts/Dpkg/Shlibs/Objdump.pm index 0b74a5efb..6e7db6025 100644 --- a/scripts/Dpkg/Shlibs/Objdump.pm +++ b/scripts/Dpkg/Shlibs/Objdump.pm @@ -154,6 +154,13 @@ use constant { EF_PPC64_ABI64 => 0x00000003, + EF_RISCV_FLOAT_ABI_SOFT => 0x0000, + EF_RISCV_FLOAT_ABI_SINGLE => 0x0002, + EF_RISCV_FLOAT_ABI_DOUBLE => 0x0004, + EF_RISCV_FLOAT_ABI_QUAD => 0x0006, + EF_RISCV_FLOAT_ABI_MASK => 0x0006, + EF_RISCV_RVE => 0x0008, + EF_SH_MACH_MASK => 0x0000001f, }; @@ -175,6 +182,7 @@ my %elf_flags_mask = ( EM_LOONGARCH() => EF_LOONGARCH_ABI_MASK, EM_MIPS() => EF_MIPS_ABI_MASK | EF_MIPS_ABI2, EM_PPC64() => EF_PPC64_ABI64, + EM_RISCV() => EF_RISCV_FLOAT_ABI_MASK | EF_RISCV_RVE, ); sub get_format { -- Dpkg.Org's dpkg

