mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 18:07:02 +07:00
d5b35cffe3
This patch adds an option to enable a work around for an icache bug on 476 that can cause execution of stale instructions when falling through pages (IBM errata #46). It requires a recent version of binutils which supports the --ppc476-workaround option. The work around enables the appropriate linker options and ensures that all module output sections are aligned to 4K page boundaries. The work around is only required when building modules. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
16 lines
188 B
Plaintext
16 lines
188 B
Plaintext
SECTIONS
|
|
{
|
|
.text : ALIGN(4096)
|
|
{
|
|
*(.text .text.* .fixup)
|
|
}
|
|
.init.text : ALIGN(4096)
|
|
{
|
|
*(.init.text .init.text.*)
|
|
}
|
|
.exit.text : ALIGN(4096)
|
|
{
|
|
*(.exit.text .exit.text.*)
|
|
}
|
|
}
|