[PATCH] D38029: [AVR] Override ParseDirective
Leslie Zhai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 15:30:50 PDT 2017
xiangzhai updated this revision to Diff 116645.
xiangzhai added a comment.
Implement `R_AVR_16_PM`:
relocations.s testcase:
...
.short foo
.short gs(foo)
...
$ avr-readelf -r avr-reloc.o
Relocation section '.rela.text' at offset 0xa8 contains 4 entries:
Offset Info Type Sym.Value Sym. Name + Addend
...
00000002 00000504 R_AVR_16 00000000 foo + 0
00000004 00000505 R_AVR_16_PM 00000000 foo + 0
...
Repository:
rL LLVM
https://reviews.llvm.org/D38029
Files:
include/llvm/BinaryFormat/ELFRelocs/AVR.def
lib/Target/AVR/AsmParser/AVRAsmParser.cpp
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
lib/Target/AVR/MCTargetDesc/AVRELFObjectWriter.cpp
lib/Target/AVR/MCTargetDesc/AVRFixupKinds.h
lib/Target/AVR/MCTargetDesc/AVRMCExpr.cpp
lib/Target/AVR/MCTargetDesc/AVRMCExpr.h
test/MC/AVR/relocations.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38029.116645.patch
Type: text/x-patch
Size: 12593 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170926/da6d7248/attachment.bin>
More information about the llvm-commits
mailing list