]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/boot/wrapper: Add "-z rodynamic" when using LLD
authorBill Wendling <morbo@google.com>
Wed, 18 Nov 2020 22:39:10 +0000 (14:39 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Nov 2020 11:05:43 +0000 (22:05 +1100)
commit642752ed9f631b203c28dd80459246d8156bbfcd
tree52e1bb4ddf2dfd74f3742b96eb36f4a89898d0e2
parent833f4ba1da3f819aef87d02bc477b8d678442b25
powerpc/boot/wrapper: Add "-z rodynamic" when using LLD

Normally all read-only sections precede SHF_WRITE sections. .dynamic
and .got have the SHF_WRITE flag; .dynamic probably because of
DT_DEBUG. LLD emits an error when this happens, so use "-z rodynamic"
to mark .dynamic as read-only.

Signed-off-by: Bill Wendling <morbo@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201118223910.2711337-1-morbo@google.com
arch/powerpc/boot/wrapper