[PATCH] D38029: [AVR] Override ParseDirective

Leslie Zhai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 05:05:00 PDT 2017


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

Implement `R_AVR_LO8_LDI_GS` and `R_AVR_HI8_LDI_GS`:

  $ 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
  
  ...
  00000038  00000b18 R_AVR_LO8_LDI_GS  00000000   foo + 0
  0000003a  00000b19 R_AVR_HI8_LDI_GS  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.116497.patch
Type: text/x-patch
Size: 9890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/091f3aa7/attachment.bin>


More information about the llvm-commits mailing list