mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-14 06:35:12 +00:00
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
This commit is contained in:
parent
324a69467f
commit
a538d184e3
1 changed files with 11 additions and 10 deletions
|
@ -34,6 +34,17 @@ SECTIONS
|
||||||
__dynamic_start = .;
|
__dynamic_start = .;
|
||||||
*(.dynamic)
|
*(.dynamic)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PPC64_BOOT_WRAPPER
|
||||||
|
. = ALIGN(256);
|
||||||
|
.got :
|
||||||
|
{
|
||||||
|
__toc_start = .;
|
||||||
|
*(.got)
|
||||||
|
*(.toc)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
.hash : { *(.hash) }
|
.hash : { *(.hash) }
|
||||||
.interp : { *(.interp) }
|
.interp : { *(.interp) }
|
||||||
.rela.dyn :
|
.rela.dyn :
|
||||||
|
@ -76,16 +87,6 @@ SECTIONS
|
||||||
_esm_blob_end = .;
|
_esm_blob_end = .;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PPC64_BOOT_WRAPPER
|
|
||||||
. = ALIGN(256);
|
|
||||||
.got :
|
|
||||||
{
|
|
||||||
__toc_start = .;
|
|
||||||
*(.got)
|
|
||||||
*(.toc)
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
. = ALIGN(4096);
|
. = ALIGN(4096);
|
||||||
.bss :
|
.bss :
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue