[PATCH] [ELFYAML] Support mips64 relocation record format in yaml2obj/obj2yaml

Simon Atanasyan simon at atanasyan.com
Thu Jan 22 22:18:09 PST 2015


Hi silvas,

MIPS64 ELF file has a very specific relocation record format. Each record might specify up to three relocation operations. So the `r_info` field in fact consists of three relocation type sub-fields and optional code of "special" symbols.
    
http://techpubs.sgi.com/library/manuals/4000/007-4658-001/pdf/007-4658-001.pdf
page 40
    
The patch implements support of the MIPS64 relocation record format in yaml2obj/obj2yaml tools by introducing new optional Relocation fields: `Type2`, `Type3`, and `SpecSym`. These fields are recognized only if the object/YAML file relates to the MIPS64 target.

http://reviews.llvm.org/D7136

Files:
  include/llvm/Object/ELFTypes.h
  include/llvm/Object/ELFYAML.h
  include/llvm/Support/ELF.h
  lib/Object/ELFYAML.cpp
  test/Object/Mips/elf-mips64-rel.yaml
  tools/yaml2obj/yaml2elf.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7136.18650.patch
Type: text/x-patch
Size: 13129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/53e02fd9/attachment.bin>


More information about the llvm-commits mailing list