FROMLIST: arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS
authorSami Tolvanen <samitolvanen@google.com>
Fri, 4 Aug 2017 19:44:35 +0000 (12:44 -0700)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 26 Apr 2018 23:03:36 +0000 (16:03 -0700)
commit774deee3fcc3b62d69598017119596579d375420
tree0b396ca909a685854a7515523b7a7e869bed3a91
parent50e31375639c02e57df6e316264f216aed072253
FROMLIST: arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS

All current versions of GNU gold crash when linking kernel modules
with ARM64_MODULE_PLTS due to a known bug:

  https://sourceware.org/bugzilla/show_bug.cgi?id=14592

To work around the problem, this change removes NOLOAD from .plt
and .init.plt.

Bug: 62093296
Bug: 67506682
Change-Id: Ie59c15dc2e60859361b5c7dac5a515eabf8bb005
(am from https://patchwork.kernel.org/patch/10085781/)
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
arch/arm64/kernel/module.lds