[PATCH] D13055: [ELF2] Handle -m option

Denis Protivensky via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 05:45:19 PDT 2015


denis-protivensky created this revision.
denis-protivensky added reviewers: Bigcheese, rafael.
denis-protivensky added a subscriber: llvm-commits.
denis-protivensky added a project: lld.

Parse and apply emulation given with -m option.
Check input files to match ELF type and machine architecture provided with -m.

Add positive tests for supported emulations.
Add negative test with unknown emulation.
Rework tests with incompatible emulation and input files.

http://reviews.llvm.org/D13055

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  ELF/Options.td
  ELF/SymbolTable.cpp
  ELF/SymbolTable.h
  ELF/Writer.cpp
  test/elf2/archive.s
  test/elf2/basic.s
  test/elf2/basic32.s
  test/elf2/basic32be.s
  test/elf2/basic64be.s
  test/elf2/bss.s
  test/elf2/common.s
  test/elf2/discard-locals.s
  test/elf2/dynamic-reloc-index.s
  test/elf2/dynamic-reloc.s
  test/elf2/emulation.s
  test/elf2/got.s
  test/elf2/incompatible.s
  test/elf2/invalid-elf.test
  test/elf2/invalid-relocations.test
  test/elf2/local-dynamic.s
  test/elf2/local.s
  test/elf2/many-sections.s
  test/elf2/output-section.s
  test/elf2/plt.s
  test/elf2/program-header-layout.s
  test/elf2/relocation-32S-error.s
  test/elf2/relocation-absolute.s
  test/elf2/relocation-common.s
  test/elf2/relocation-errors.s
  test/elf2/relocation-i686.s
  test/elf2/relocation-local.s
  test/elf2/relocation-undefined-weak.s
  test/elf2/relocation.s
  test/elf2/resolution.s
  test/elf2/section-align-0.test
  test/elf2/shared.s
  test/elf2/string-table.s
  test/elf2/symbols.s
  test/elf2/undef-start.s
  test/elf2/undef.s
  test/elf2/visibility.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13055.35368.patch
Type: text/x-patch
Size: 35131 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150922/bcccc347/attachment-0001.bin>


More information about the llvm-commits mailing list