Re: build failure caused by RUNTIME_CONST()
From: Oleg Nesterov
Date: Sat Aug 03 2024 - 08:01:54 EST
On 08/02, Linus Torvalds wrote:
>
> On Fri, 2 Aug 2024 at 15:10, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> >
> > $ ld -v
> > GNU ld version 2.25-17.fc23
>
> Yeah, we document that we support building with ld-2.25.
Where? I tried to grep Documentation/ but didn't find anything...
> Reported-by: Oleg Nesterov <oleg@xxxxxxxxxx>
> Link: https://sourceware.org/binutils/docs/ld/Input-Section-Example.html [1]
> Link: https://lore.kernel.org/all/20240802114518.GA20924@xxxxxxxxxx/
> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Tested-by: Oleg Nesterov <oleg@xxxxxxxxxx>
But,
> -#define RUNTIME_NAME(t,x) runtime_##t##_##x
> +#define NAMED_SECTION(name) \
> + name : AT(ADDR(name) - LOAD_OFFSET) ALIGN(8) \
^^^^^^^^
it seems that all other section do
. = ALIGN(x); name : ...
was this change intentional?
Oleg.