mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: remove special treatment for the link order of head.o
@ 2022-10-18 14:12 Jisheng Zhang
  2022-10-27 22:45 ` Palmer Dabbelt
  0 siblings, 1 reply; 2+ messages in thread
From: Jisheng Zhang @ 2022-10-18 14:12 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Masahiro Yamada,
	Nicolas Schier
  Cc: linux-kernel, linux-riscv

arch/riscv/kernel/head.o does not need any special treatment - the only
requirement is the ".head.text" section must be placed before the
normal ".text" section.

The linker script does the right thing to do. The build system does
not need to manipulate the link order of head.o.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 scripts/head-object-list.txt | 1 -
 1 file changed, 1 deletion(-)

diff --git a/scripts/head-object-list.txt b/scripts/head-object-list.txt
index b16326a92c45..105ea7ac4751 100644
--- a/scripts/head-object-list.txt
+++ b/scripts/head-object-list.txt
@@ -39,7 +39,6 @@ arch/powerpc/kernel/entry_64.o
 arch/powerpc/kernel/fpu.o
 arch/powerpc/kernel/vector.o
 arch/powerpc/kernel/prom_init.o
-arch/riscv/kernel/head.o
 arch/s390/kernel/head64.o
 arch/sh/kernel/head_32.o
 arch/sparc/kernel/head_32.o
-- 
2.37.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] riscv: remove special treatment for the link order of head.o
  2022-10-18 14:12 [PATCH] riscv: remove special treatment for the link order of head.o Jisheng Zhang
@ 2022-10-27 22:45 ` Palmer Dabbelt
  0 siblings, 0 replies; 2+ messages in thread
From: Palmer Dabbelt @ 2022-10-27 22:45 UTC (permalink / raw)
  To: Jisheng Zhang, Palmer Dabbelt, Masahiro Yamada, Paul Walmsley,
	Albert Ou, Nicolas Schier
  Cc: linux-riscv, linux-kernel

On Tue, 18 Oct 2022 22:12:00 +0800, Jisheng Zhang wrote:
> arch/riscv/kernel/head.o does not need any special treatment - the only
> requirement is the ".head.text" section must be placed before the
> normal ".text" section.
> 
> The linker script does the right thing to do. The build system does
> not need to manipulate the link order of head.o.
> 
> [...]

Applied, thanks!

[1/1] riscv: remove special treatment for the link order of head.o
      https://git.kernel.org/palmer/c/2348e6bf4421

Best regards,
-- 
Palmer Dabbelt <palmer@rivosinc.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-27 23:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 14:12 [PATCH] riscv: remove special treatment for the link order of head.o Jisheng Zhang
2022-10-27 22:45 ` Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®