<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Linux kernel's multi_v5_defconfig no longer boots after max-page-size increase to 64k"
href="https://bugs.llvm.org/show_bug.cgi?id=45632">45632</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linux kernel's multi_v5_defconfig no longer boots after max-page-size increase to 64k
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>natechancellor@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, smithp352@googlemail.com
</td>
</tr></table>
<p>
<div>
<pre><a href="https://github.com/llvm/llvm-project/commit/87383e408d41623ada41e2bbc371b037fa29e894">https://github.com/llvm/llvm-project/commit/87383e408d41623ada41e2bbc371b037fa29e894</a>
To reproduce (assuming LLVM/clang, arm-linux-gnueabi binutils, zstd, and
qemu-system-arm are in your PATH):
$ git clone -b v5.7-rc2
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ git clone <a href="https://github.com/ClangBuiltLinux/boot-utils">https://github.com/ClangBuiltLinux/boot-utils</a>
$ make -C linux -j$(nproc) -s ARCH=arm CC=clang
CROSS_COMPILE=arm-linux-gnueabi- LLVM=1 O=out/arm32 distclean
multi_v5_defconfig zImage aspeed-bmc-opp-palmetto.dtb
$ ./boot-utils/boot-qemu.sh -a arm32_v5 -k linux/out/arm32 -t 30s
...
+ RET=124
...
To test the behavior before that change:
$ sed -i '55 a KBUILD_LDFLAGS\t+= -z max-page-size=4096'
linux/arch/arm/Makefile
$ make -C linux -j$(nproc) -s ARCH=arm CC=clang
CROSS_COMPILE=arm-linux-gnueabi- LLVM=1 O=out/arm32 distclean
multi_v5_defconfig zImage aspeed-bmc-opp-palmetto.dtb
$ ./boot-utils/boot-qemu.sh -a arm32_v5 -k linux/out/arm32 -t 30s
...
Linux version 5.7.0-rc2-dirty (nathan@ubuntu-s3-xlarge-x86) (ClangBuiltLinux
clang version 11.0.0 (git://github.com/llvm/llvm-project
a9b137f9ffba8cb25dfd7dd1fb613e8aac121b37), LLD 11.0.0
(git://github.com/llvm/llvm-project a9b137f9ffba8cb25dfd7dd1fb613e8aac121b37))
#1 PREEMPT Tue Apr 21 13:21:14
...
I am unsure of how to debug this further. I tried attaching gdb to vmlinux but
it looks like the boot gets stuck extremely early, it does not even make it to
start_kernel.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>