]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
powerpc/boot: Move the .got section to after the .dynamic section
authorBill Wendling <morbo@google.com>
Sat, 17 Oct 2020 00:01:51 +0000 (17:01 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Nov 2020 11:05:42 +0000 (22:05 +1100)
commita538d184e3f0e3b5f800c5ab148e83bb5cdd0133
tree186aa34fb888a69f8980844b39edadb12aac9e64
parent324a69467f12652b21b17f9644faa967d3d8bbdf
powerpc/boot: Move the .got section to after the .dynamic section

Both .dynamic and .got are RELRO sections and should be placed
together, and LLD emits an error:

  ld.lld: error: section: .got is not contiguous with other relro sections

Place them together to avoid this.

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