[PATCH v2] ppc: add "-z notext" flag to disable diagnostic

2021-08-13 Thread Bill Wendling
errors. Non-CONFIG_RELOCATABLE builds use the default -no-pie mode and thus R_PPC64_ADDR64 relocations can be resolved at link-time. Link: https://github.com/ClangBuiltLinux/linux/issues/811 Signed-off-by: Fangrui Song Co-developed-by: Bill Wendling Signed-off-by: Bill Wendling Reported-by:

Re: [PATCH] ppc: add "-z notext" flag to disable diagnostic

2021-08-13 Thread Bill Wendling
On Fri, Aug 13, 2021 at 7:13 AM Daniel Axtens wrote: > > Bill Wendling writes: > > > The "-z notext" flag disables reporting an error if DT_TEXTREL is set on > > PPC with CONFIG=kdump: > > > > ld.lld: error: can't create dynamic relocatio

[PATCH] ppc: add "-z notext" flag to disable diagnostic

2021-08-12 Thread Bill Wendling
bles this by default. So we add the flag to keep LLD from emitting the error. Signed-off-by: Bill Wendling --- The output of the "get_maintainer.pl" run just in case no one believes me. :-) $ ./scripts/get_maintainer.pl arch/powerpc/Makefile Michael Ellerman (supporter:LINU

[PATCH v3 0/3] PPC: fixes for clang support

2020-11-20 Thread Bill Wendling
eb7c11ee3c5ce arm64: alternative: Work around .inst assembler bugs Bill Wendling (3): powerpc/wrapper: add "-z notext" flag to disable diagnostic powerpc/boot: Use clang when CC is clang powerpc/64s: feature: Work around inline asm issues arch/powerpc/boot/Makefile| 4 +

[PATCH 1/3] powerpc/wrapper: add "-z notext" flag to disable diagnostic

2020-11-18 Thread Bill Wendling
ing the error. Cc: Fangrui Song Cc: Alan Modra Signed-off-by: Bill Wendling --- arch/powerpc/boot/wrapper | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index e1194955adbb..41fa0a8715e3 100755 --- a/arch/powerpc/boot/wrappe

[PATCH 0/2] Fixes for clang/lld

2020-10-16 Thread Bill Wendling
These patches fix some compilation / linking issues with clang & lld. Bill Wendling (2): powerpc/wrapper: Add "-z notext" flag to disable diagnostic powerpc/boot: Use clang when CC is clang arch/powerpc/boot/Makefile | 4 arch/powerpc/boot/wrapper | 6 -- 2 fi

[PATCH 1/2] powerpc/wrapper: Add "-z notext" flag to disable diagnostic

2020-10-16 Thread Bill Wendling
ing the error. Cc: Fangrui Song Cc: Alan Modra Signed-off-by: Bill Wendling --- arch/powerpc/boot/wrapper | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index cd58a62e810d..e576d3e4b23f 100755 --- a/arch/powerpc/boot/

[PATCH] powerpc/boot: move the .got section to after the .dynamic section

2020-10-16 Thread Bill Wendling
Both .dynamic and .got are RELRO sections and should be placed together, and LLD emits an error: ld.lld: error: section: .got is not contiguous with other relro sections Place them together to avoid this. Cc: Fangrui Song Cc: Alan Modra Signed-off-by: Bill Wendling --- arch/powerpc/boot