[PATCH] D38029: [AVR] Override ParseDirective
Leslie Zhai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 10 21:49:12 PDT 2017
xiangzhai updated this revision to Diff 118539.
xiangzhai added a comment.
Support `R_AVR_DIFF8`, `R_AVR_DIFF16` and `R_AVR_DIFF32` now :)
$ llvm-mc -filetype=obj -triple=avr-unknown-linux -mcpu=atmega328p relax.s <https://github.com/xiangzhai/binutils-gdb/blob/master/ld/testsuite/ld-avr/relax.s> -o avr-relax-llvm.o
$ avr-readelf -r avr-relax-llvm.o
Relocation section '.rela.text' at offset 0xd8 contains 1 entries:
Offset Info Type Sym.Value Sym. Name + Addend
00000000 00000512 R_AVR_CALL 00000000 .text + 0
Relocation section '.rela.data' at offset 0xe4 contains 3 entries:
Offset Info Type Sym.Value Sym. Name + Addend
00000000 0000051e R_AVR_DIFF8 00000000 .text + 0
00000002 0000051f R_AVR_DIFF16 00000000 .text + 0
00000006 00000520 R_AVR_DIFF32 00000000 .text + 0
Repository:
rL LLVM
https://reviews.llvm.org/D38029
Files:
include/llvm/BinaryFormat/ELFRelocs/AVR.def
include/llvm/MC/MCExpr.h
lib/MC/MCExpr.cpp
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/AVRMCELFStreamer.cpp
lib/Target/AVR/MCTargetDesc/AVRMCELFStreamer.h
lib/Target/AVR/MCTargetDesc/AVRMCExpr.cpp
lib/Target/AVR/MCTargetDesc/AVRMCExpr.h
lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.cpp
lib/Target/AVR/MCTargetDesc/AVRMCTargetDesc.h
lib/Target/AVR/MCTargetDesc/CMakeLists.txt
test/MC/AVR/relocations.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38029.118539.patch
Type: text/x-patch
Size: 24510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/ea39a245/attachment.bin>
More information about the llvm-commits
mailing list