https://bugs.llvm.org/show_bug.cgi?id=45246
Bug ID: 45246
Summary: Inline assembler doesn't honor ".weak" on PPC
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangb...@nondot.org
Reporter: isanb...@gmail.com
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
When I try to compile the prodkernel with the integrated assembler for PPC, I
get an error while linking saying that `_zimage_start' is duplicated. It looks
like the `arch/powerpc/boot/crt0.S' file specifies that symbol as ".weak", but
clang turns it into a definition:
$ cat ppc-asm.S
.text
.weak _zimage_start
.globl _zimage_start
_zimage_start:
$ clang -target powerpc64-linux-gnu -o /tmp/t.o ../ppc-asm.S -c
$ nm /tmp/t.o
0000000000000000 T _zimage_start
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs