[PATCH] D38029: [AVR] Override ParseDirective

Leslie Zhai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 00:28:35 PDT 2017


xiangzhai updated this revision to Diff 118320.
xiangzhai added a comment.

Supported `.byte lo8(foo)` now :)

  $ llvm/build/bin/llvm-mc -filetype=obj -triple=avr-unknown-linux -mcpu=atmega328p relocations.s -o avr-llvm-relocations.o
  $ avr-readelf -r avr-llvm-relocations.o 
  
  Relocation section '.rela.text' at offset 0x78 contains 3 entries:
   Offset     Info    Type            Sym.Value  Sym. Name + Addend
  ...
  00000071  00000b1b R_AVR_8_LO8       00000000   foo + 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.118320.patch
Type: text/x-patch
Size: 23592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171010/85fa5bdc/attachment.bin>


More information about the llvm-commits mailing list