* [PATCH -fixes] riscv: Remove duplicate objcopy flag
@ 2023-09-14 9:13 Song Shuai
2023-09-20 9:52 ` Palmer Dabbelt
2023-10-12 20:40 ` patchwork-bot+linux-riscv
0 siblings, 2 replies; 4+ messages in thread
From: Song Shuai @ 2023-09-14 9:13 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, anup; +Cc: linux-riscv, linux-kernel, Song Shuai
There are two duplicate `-O binary` flags when objcopying from vmlinux
to Image/xipImage.
RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv
Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd
in Kbuild would join them together.
The `-O binary` flag is only needed for objcopying Image, so remove the
OBJCOPYFLAGS in the top-level riscv Makefile.
Fixes: c0fbcd991860 ("RISC-V: Build flat and compressed kernel images")
Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
---
arch/riscv/Makefile | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
index 1329e060c548..b43a6bb7e4dc 100644
--- a/arch/riscv/Makefile
+++ b/arch/riscv/Makefile
@@ -6,7 +6,6 @@
# for more details.
#
-OBJCOPYFLAGS := -O binary
LDFLAGS_vmlinux := -z norelro
ifeq ($(CONFIG_RELOCATABLE),y)
LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs
--
2.20.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH -fixes] riscv: Remove duplicate objcopy flag
2023-09-14 9:13 [PATCH -fixes] riscv: Remove duplicate objcopy flag Song Shuai
@ 2023-09-20 9:52 ` Palmer Dabbelt
2023-09-20 10:04 ` Song Shuai
2023-10-12 20:40 ` patchwork-bot+linux-riscv
1 sibling, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2023-09-20 9:52 UTC (permalink / raw)
To: songshuaishuai
Cc: Paul Walmsley, aou, anup, linux-riscv, linux-kernel,
songshuaishuai
On Thu, 14 Sep 2023 02:13:34 PDT (-0700), songshuaishuai@tinylab.org wrote:
> There are two duplicate `-O binary` flags when objcopying from vmlinux
> to Image/xipImage.
>
> RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv
> Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd
> in Kbuild would join them together.
>
> The `-O binary` flag is only needed for objcopying Image, so remove the
> OBJCOPYFLAGS in the top-level riscv Makefile.
>
> Fixes: c0fbcd991860 ("RISC-V: Build flat and compressed kernel images")
> Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
> ---
> arch/riscv/Makefile | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
> index 1329e060c548..b43a6bb7e4dc 100644
> --- a/arch/riscv/Makefile
> +++ b/arch/riscv/Makefile
> @@ -6,7 +6,6 @@
> # for more details.
> #
>
> -OBJCOPYFLAGS := -O binary
> LDFLAGS_vmlinux := -z norelro
> ifeq ($(CONFIG_RELOCATABLE),y)
> LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs
Does this result in any incorrect behavior? It looks fine to me, but if
there's no regression I'll put in on -next instead of -fixes.
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH -fixes] riscv: Remove duplicate objcopy flag
2023-09-20 9:52 ` Palmer Dabbelt
@ 2023-09-20 10:04 ` Song Shuai
0 siblings, 0 replies; 4+ messages in thread
From: Song Shuai @ 2023-09-20 10:04 UTC (permalink / raw)
To: Palmer Dabbelt; +Cc: Paul Walmsley, aou, anup, linux-riscv, linux-kernel
在 2023/9/20 17:52, Palmer Dabbelt 写道:
> On Thu, 14 Sep 2023 02:13:34 PDT (-0700), songshuaishuai@tinylab.org wrote:
>> There are two duplicate `-O binary` flags when objcopying from vmlinux
>> to Image/xipImage.
>>
>> RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv
>> Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd
>> in Kbuild would join them together.
>>
>> The `-O binary` flag is only needed for objcopying Image, so remove the
>> OBJCOPYFLAGS in the top-level riscv Makefile.
>>
>> Fixes: c0fbcd991860 ("RISC-V: Build flat and compressed kernel images")
>> Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
>> ---
>> arch/riscv/Makefile | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
>> index 1329e060c548..b43a6bb7e4dc 100644
>> --- a/arch/riscv/Makefile
>> +++ b/arch/riscv/Makefile
>> @@ -6,7 +6,6 @@
>> # for more details.
>> #
>>
>> -OBJCOPYFLAGS := -O binary
>> LDFLAGS_vmlinux := -z norelro
>> ifeq ($(CONFIG_RELOCATABLE),y)
>> LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs
>
> Does this result in any incorrect behavior? It looks fine to me, but if
Nop, objcopy works as it's expected. You can put this patch on -next.
> there's no regression I'll put in on -next instead of -fixes.
>
> Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
>
--
Thanks
Song Shuai
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -fixes] riscv: Remove duplicate objcopy flag
2023-09-14 9:13 [PATCH -fixes] riscv: Remove duplicate objcopy flag Song Shuai
2023-09-20 9:52 ` Palmer Dabbelt
@ 2023-10-12 20:40 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2023-10-12 20:40 UTC (permalink / raw)
To: Song Shuai; +Cc: linux-riscv, paul.walmsley, palmer, aou, anup, linux-kernel
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Thu, 14 Sep 2023 17:13:34 +0800 you wrote:
> There are two duplicate `-O binary` flags when objcopying from vmlinux
> to Image/xipImage.
>
> RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv
> Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd
> in Kbuild would join them together.
>
> [...]
Here is the summary with links:
- [-fixes] riscv: Remove duplicate objcopy flag
https://git.kernel.org/riscv/c/505b02957e74
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-12 20:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14 9:13 [PATCH -fixes] riscv: Remove duplicate objcopy flag Song Shuai
2023-09-20 9:52 ` Palmer Dabbelt
2023-09-20 10:04 ` Song Shuai
2023-10-12 20:40 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox