mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
riscv: Move .rela.dyn outside of init to avoid empty relocations
This is a preparatory patch for relocatable kernels: .rela.dyn should be in .init but doing so actually produces empty relocations, so this should be a temporary commit until we find a solution. This issue was reported here [1]. [1] https://lore.kernel.org/all/4a6fc7a3-9697-a49b-0941-97f32194b0d7@ghiti.fr/. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230329045329.64565-3-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
committed by
Palmer Dabbelt
parent
55de1e4ad4
commit
69a90d2fe1
@@ -96,10 +96,6 @@ SECTIONS
|
|||||||
*(.rel.dyn*)
|
*(.rel.dyn*)
|
||||||
}
|
}
|
||||||
|
|
||||||
.rela.dyn : {
|
|
||||||
*(.rela*)
|
|
||||||
}
|
|
||||||
|
|
||||||
__init_data_end = .;
|
__init_data_end = .;
|
||||||
|
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
@@ -126,6 +122,10 @@ SECTIONS
|
|||||||
*(.sdata*)
|
*(.sdata*)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rela.dyn : {
|
||||||
|
*(.rela*)
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_EFI
|
#ifdef CONFIG_EFI
|
||||||
.pecoff_edata_padding : { BYTE(0); . = ALIGN(PECOFF_FILE_ALIGNMENT); }
|
.pecoff_edata_padding : { BYTE(0); . = ALIGN(PECOFF_FILE_ALIGNMENT); }
|
||||||
__pecoff_data_raw_size = ABSOLUTE(. - __pecoff_text_end);
|
__pecoff_data_raw_size = ABSOLUTE(. - __pecoff_text_end);
|
||||||
|
Reference in New Issue
Block a user