Package: libc6-bin
Severity: serious
Version: 2.22-7
Tags: patch

Hi folks,

Steev has reported some crashing using ldconfig on arm64 systems with
armhf added as a secondary architecture - he's using this config in
Kali, for example.

Working through the problem with him on #debian-arm, I can see that
it's a problem with our/my patch for ARM ABI detection. On older
binaries that predate the new ABI flags in the ELF header, we're still
parsing the ARM attributes. That works fine on armel/armhf, but on
arm64 this code is being built wrongly using native (ELF64)
types. This patch is the obvious fix - enforce using ELF32 types for
all arches.

It seems that we still have some older packages without the ABI flags
attached - libshout3 is one such. :-(

-- 
Steve McIntyre, Cambridge, UK.                                st...@einval.com
"I can't ever sleep on planes ... call it irrational if you like, but I'm
 afraid I'll miss my stop" -- Vivek Das Mohapatra
--- debian/patches/arm/unsubmitted-ldconfig-cache-abi.diff~	2016-04-19 09:49:50.000000000 +0000
+++ debian/patches/arm/unsubmitted-ldconfig-cache-abi.diff	2016-04-24 23:12:33.808037225 +0000
@@ -40,8 +40,8 @@
 +static int is_library_hf(const char *file_name, void *file_contents, size_t file_length)
 +{
 +  unsigned int i;
-+  ElfW(Ehdr) *ehdr = (ElfW(Ehdr) *) file_contents;
-+  ElfW(Shdr) *shdrs;
++  Elf32_Ehdr *ehdr = (Elf32_Ehdr *) file_contents;
++  Elf32_Shdr *shdrs;
 +
 +  shdrs = file_contents + ehdr->e_shoff;
 +  for (i = 0; i < ehdr->e_shnum; i++)

Reply via email to