[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
Wed Apr 3 23:50:45 PDT 2019


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

Modify `dynamic_relocation_sections` to return `Expected` and errors out if input is not `ET_EXEC`/`ET_DYN` or when no `DYNAMIC` section is found, the previous revision would just silently do nothing if given a static executable.


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

https://reviews.llvm.org/D60250

Files:
  include/llvm/Object/ELFObjectFile.h
  include/llvm/Object/ObjectFile.h
  tools/llvm-objdump/llvm-objdump.cpp

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


More information about the llvm-commits mailing list