[Bug libelf/26734] ELF saving fails for an AARCH64 binary built with -mbranch-protection=standard

mliska at suse dot cz sourceware-bugzilla@sourceware.org
Wed Oct 14 08:33:36 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26734

--- Comment #1 from Martin Liska <mliska at suse dot cz> ---
Fails here:

./libelf/elf32_updatenull.c:

                  if (unlikely (sh_size % shdr->sh_entsize != 0))
                    {
                      __libelf_seterrno (ELF_E_INVALID_SHENTSIZE);
                      return -1;
                    }

and the problematic section is:

$ readelf -S --wide /tmp/authvar
...
  [15] .plt              PROGBITS        0000000000402b00 002b00 000a40 18  AX 
0   0 16

Where 0x000a40 == 2624 and 0x18 = 24. 2624 % 24 == 8.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list