[Rpm-maint] [rpm-software-management/rpm] Multi-arch ELF dependency generation (v6 packages) (PR #3578)
Panu Matilainen
notifications at github.com
Wed Feb 19 07:12:38 UTC 2025
@pmatilai commented on this pull request.
> + auto res = emap.find(val);
+ return res != emap.end() ? res->second : "unknown";
+}
+
+static void armflags(GElf_Ehdr *ehdr, std::string & flags)
+{
+ if ((ehdr->e_flags & EF_ARM_ABI_FLOAT_HARD) == EF_ARM_ABI_FLOAT_HARD)
+ flags += "h";
+ if ((ehdr->e_flags & EF_ARM_ABI_FLOAT_SOFT) == EF_ARM_ABI_FLOAT_SOFT)
+ flags += "s";
+}
+
+static void x86flags(GElf_Ehdr *ehdr, std::string & flags)
+{
+ if (ehdr->e_machine == EM_X86_64 && ehdr->e_ident[EI_CLASS] == ELFCLASS32)
+ flags += "x";
No no. You get "x86" from as the arch, "32" as the bits, "l" for endianess and "x" as a flag, so it becomes: `x86-32-x`
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3578#discussion_r1961076065
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3578/review/2625819668 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250218/02a4f8e6/attachment-0001.htm>
More information about the Rpm-maint
mailing list