Source: qtbase-opensource-src
Version: 5.15.17+dfsg-7
Severity: minor

Hi,

readelf reports an issue with the ELF note in libQt5Core.so.5.15.17 on
arm64, loong64 and other architectures. On amd64 the note is fine.

Here's the message printed to standard error by readelf on the affected
architectures:

  readelf: Warning: Corrupt note: alignment 16, expecting 4 or 8

The reason for this is that src/corelib/global/minimum-linux.S uses the
.align directive, the behavior of which is architecture dependant. On
some architectures the alignment required is the actual alignment in
bytes, whilst on others it represents the number of low-order zero bits
the location counter must have after advancement:
https://sourceware.org/binutils/docs/as/Align.html

GAS provides an alternative directive, .balign, which considers the
given expression as the alignment required in bytes regardless of the
architecture. Using .balign instead of .align thus fixes the issue:
https://sourceware.org/binutils/docs/as/Balign.html

Thanks,
  Emanuele

Reply via email to