llvm-project/llvm/lib/Target/MSP430/MCTargetDesc
Anton Korobeynikov 883c70959d [MSP430] Use R_MSP430_16_BYTE type for FK_Data_2 fixup
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
2018-11-16 19:20:51 +00:00
..
CMakeLists.txt [MSP430] Add MC layer 2018-11-15 12:29:43 +00:00
LLVMBuild.txt
MSP430AsmBackend.cpp Add missed files from prev. commit 2018-11-15 12:35:04 +00:00
MSP430ELFObjectWriter.cpp [MSP430] Use R_MSP430_16_BYTE type for FK_Data_2 fixup 2018-11-16 19:20:51 +00:00
MSP430ELFStreamer.cpp Add missed files from prev. commit 2018-11-15 12:35:04 +00:00
MSP430FixupKinds.h Add missed files from prev. commit 2018-11-15 12:35:04 +00:00
MSP430MCAsmInfo.cpp
MSP430MCAsmInfo.h Remove trailing space 2018-07-30 19:41:25 +00:00
MSP430MCCodeEmitter.cpp Add missed files from prev. commit 2018-11-15 12:35:04 +00:00
MSP430MCTargetDesc.cpp [MSP430] Add MC layer 2018-11-15 12:29:43 +00:00
MSP430MCTargetDesc.h [MSP430] Add MC layer 2018-11-15 12:29:43 +00:00