[PATCH] kernel/generic: fix the 5.10 arm gc-sections patch

2021-07-23 Thread Rui Salvaterra
Latest binutils (2.37) exposed a long-standing bug. The kernel linking stage would break at the SORTTAB step, due to the exception table having been previously purged from vmlinux, as its section wasn't marked as unconditionally kept. Fix thusly. Additionally, the "#define ARM_MMU_DISCARD(x) KEEP(

[PATCH v2] gemini: Add hdparm setting

2021-07-23 Thread Linus Walleij
This uses "hdparm" (if present) to get the harddisk into low power mode on NAS set-ups. Cc: Adrian Schmutzler Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Drop executable bit and !/bin/sh shebang - Add SPDX header - Use $(command -v ...) construct to check for hdparm - Use $() construct

Re: [PATCH] toolchain/binutils: add binutils 2.37

2021-07-23 Thread Rui Salvaterra
Hi, Just a heads-up, if you want to play with it, binutils 2.37 breaks our 5.10 kernel build at the SORTTAB step, on mvebu/cortexa9 (at least), with the following error: no __ex_table in file: vmlinux Failed to sort kernel tables However, ramips/mt7621 (5.10) builds and runs without issues. Che