[PATCH] D60250: [llvm-objdump] Allow -dynamic-reloc on ET_EXEC files

Chih-Mao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 12:08:05 PDT 2019


PkmX updated this revision to Diff 193929.
PkmX added a comment.

The new patch handles non-dynamic objects logic within `llvm-objdump` and no longer modifies `dynamic_relocation_sections` other than making it match on `sh_addr`. I also added tests for all three cases: `ET_DYN` (for PIE/shared libraries since there doesn't seem to be an existing test), dynamically linked `ET_EXEC` and statically-linked `ET_EXEC` (which should error out).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60250/new/

https://reviews.llvm.org/D60250

Files:
  include/llvm/Object/ELFObjectFile.h
  test/tools/llvm-objdump/dynamic-reloc-dyn.test
  test/tools/llvm-objdump/dynamic-reloc-static.test
  tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60250.193929.patch
Type: text/x-patch
Size: 3734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/eae9bcdb/attachment.bin>


More information about the llvm-commits mailing list