All of lore.kernel.org
 help / color / mirror / Atom feed
* ARM: pxa/corgi: armv5te kernel 4.12 fails to decompress compiled with gcc7
@ 2017-07-19 13:13 Andrea Adami
  2017-07-20  6:57 ` Robert Jarzmik
  0 siblings, 1 reply; 20+ messages in thread
From: Andrea Adami @ 2017-07-19 13:13 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

with the same toolchain, only changing from gcc6.3.0 to gcc7.1.0, the
kernel does not boot: using xz the decompression fails with
"XZ-compressed data is corrupt" / XZ_DATA_ERROR.

I think it might be this line in lib/xz/xz_dec_stream.c

    s->vli |= (vli_type)(byte & 0x7F) << s->pos;

Here gcc6 is using __aeabi_llsl

Looking at the disassembled sources, do you see evident issues in dec_vli()?
Kernel is built optimized for size. I am uploading the logs and huge
build dirs [1]

Pls look under /disassembled. Suffix is the gcc version.

decompress6.S -> built with  gcc6
decompress7.S -> built with  gcc7

I am puzzled because the same toolchain produces valid kernel for
qemuarm versatile-926ejs.

Finally, a short test with gzip compressed kernel shows it does not
boot as well so maybe the issue is another. I don't have serial here
now but I'll take more logs if necessary.

Thanks
Andrea

[1] https://github.com/andrea-adami/gcc7-kernel-debug

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-10-24  8:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19 13:13 ARM: pxa/corgi: armv5te kernel 4.12 fails to decompress compiled with gcc7 Andrea Adami
2017-07-20  6:57 ` Robert Jarzmik
2017-09-02 21:50   ` Andrea Adami
2017-10-14 21:50     ` Aaro Koskinen
2017-10-14 21:57       ` Robert Jarzmik
2017-10-15 10:46         ` Aaro Koskinen
2017-10-15 13:01           ` Russell King - ARM Linux
2017-10-15 15:14             ` Aaro Koskinen
2017-10-16 11:55           ` Petr Cvek
2017-10-17  8:02             ` Andrea Adami
2017-10-17  8:10               ` Petr Cvek
2017-10-17  8:18                 ` Andrea Adami
2017-10-18 10:39                   ` Petr Cvek
2017-10-18 10:44                     ` Russell King - ARM Linux
2017-10-18 11:12                       ` Petr Cvek
2017-10-24  8:34                         ` Andrea Adami
2017-10-24  8:43                           ` Andrea Adami
2017-10-17 20:33             ` Aaro Koskinen
2017-10-18  9:57               ` Petr Cvek
2017-10-14 22:00       ` Petr Cvek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.