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(
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
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