Re: [PATCH v2] MIPS: move _stext definition to vmlinux.lds.S

From: Masahiro Yamada
Date: Sat Nov 16 2024 - 23:50:57 EST


On Wed, Nov 13, 2024 at 3:40 PM Rong Xu <xur@xxxxxxxxxx> wrote:
>
> The _stext symbol is intended to reference the start of the text section.
> However, it currently relies on a fragile link order because the existing
> EXPORT(_stext) resides within the .text section, which is not guaranteed
> to be placed first.
>
> Move the _stext definition to the linker script to enforce an explicit
> ordering.
>
> Signed-off-by: Rong Xu <xur@xxxxxxxxxx>
> Reported-by: Klara Modin <klarasmodin@xxxxxxxxx>
> Tested-by: Klara Modin <klarasmodin@xxxxxxxxx>
> --

Applied to linux-kbuild.
(inserted before "vmlinux.lds.h: Adjust symbol ordering in text output section")

Thanks.



--
Best Regards
Masahiro Yamada