Re: [PATCH] LoongArch: Fix an issue with relocatable vmlinux

2023-11-27 Thread Simon Horman
On Fri, Nov 24, 2023 at 04:54:10PM +0800, WANG Rui wrote: > Normally vmlinux for LoongArch is of ET_EXEC type, while if built with > CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. > Meanwhile, physical address field of segments in vmlinux has actually > the same value as

Re: [PATCH] LoongArch: Fix an issue with relocatable vmlinux

2023-11-25 Thread Huacai Chen
Reviewed-by: Huacai Chen On Fri, Nov 24, 2023 at 4:54 PM WANG Rui wrote: > > Normally vmlinux for LoongArch is of ET_EXEC type, while if built with > CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. > Meanwhile, physical address field of segments in vmlinux has actually >

[PATCH] LoongArch: Fix an issue with relocatable vmlinux

2023-11-24 Thread WANG Rui
Normally vmlinux for LoongArch is of ET_EXEC type, while if built with CONFIG_RELOCATABLE (this is PIE) and Clang, it will be of ET_DYN type. Meanwhile, physical address field of segments in vmlinux has actually the same value as virtual address field. Similar to arm64, this patch allows to