[PATCH] D100489: [UPSTREAM][llvm-readobj] Fix dumping dynamic relative relocations for SHT_REL

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 09:09:13 PDT 2021


arichardson created this revision.
Herald added a subscriber: rupprecht.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
arichardson edited the summary of this revision.
arichardson added a reviewer: grimar.
arichardson published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Previously printing R_386_RELATIVE relocations would trigger
`error: can't read an entry at 0x40: it goes past the end of the section (0x40)`
I found this while writing a test case for LLD (D100490 <https://reviews.llvm.org/D100490>)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100489

Files:
  llvm/test/tools/llvm-objdump/X86/elf-dynamic-relocs-rel.test
  llvm/tools/llvm-objdump/ELFDump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100489.337474.patch
Type: text/x-patch
Size: 5468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210414/77a1d4c1/attachment.bin>


More information about the llvm-commits mailing list