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:
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
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
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 +
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
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
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/
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