forked from OSchip/llvm-project
Linker fails to link example like this (simplified case from newlib
sources):
$ cat test.c
extern const char _ctype_b[];
struct _t { char *ptr; };
struct _t T = { ((char *) _ctype_b + 3) };
$ cat ctype.c
char _ctype_b[4] = { 0, 0, 0, 0 };
LD: test.o:(.data+0x0): warning: internal error: unsupported relocation error
We also follow gnu toolchain here, where 2-byte relocation mapped to
R_MSP430_16_BYTE, instead of R_MSP430_16.
Patch by Kristina Bessonova!
Differential Revision: https://reviews.llvm.org/D54620
llvm-svn: 347074
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| LLVMBuild.txt | ||
| MSP430AsmBackend.cpp | ||
| MSP430ELFObjectWriter.cpp | ||
| MSP430ELFStreamer.cpp | ||
| MSP430FixupKinds.h | ||
| MSP430MCAsmInfo.cpp | ||
| MSP430MCAsmInfo.h | ||
| MSP430MCCodeEmitter.cpp | ||
| MSP430MCTargetDesc.cpp | ||
| MSP430MCTargetDesc.h | ||