aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.10/220-gc_sections.patch
Commit message (Collapse)AuthorAgeFilesLines
* kernel/generic: fix the arm gc-sections patchRui Salvaterra2021-07-251-120/+0
| | | | | | | | | | | | | | | | | | 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(x)" change is bogus. It would only apply to !CONFIG_MMU devices (which we don't support in OpenWrt), and it would even break the build if referenced. Drop it. While at it, rename the patch in order to make it obvious that it's arm-specific. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> [Add same changes for kernel 5.4 too] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add linux 5.10 supportFelix Fietkau2021-02-161-0/+120
Signed-off-by: Felix Fietkau <nbd@nbd.name>