[all-commits] [llvm/llvm-project] 98a428: [llvm-readobj] - For SHT_REL relocations, don't di...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Dec 14 01:07:48 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 98a4289810ba49cea6f9a9be6d902e72f0c0d0e7
      https://github.com/llvm/llvm-project/commit/98a4289810ba49cea6f9a9be6d902e72f0c0d0e7
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M lld/test/ELF/arm-abs32-dyn.s
    M lld/test/ELF/arm-copy.s
    M lld/test/ELF/arm-gnu-ifunc-plt.s
    M lld/test/ELF/arm-got-relative.s
    M lld/test/ELF/arm-plt-reloc.s
    M lld/test/ELF/arm-target1.s
    M lld/test/ELF/arm-thumb-plt-reloc.s
    M lld/test/ELF/arm-tls-ldm32.s
    M lld/test/ELF/dynamic-got.s
    M lld/test/ELF/gnu-ifunc-plt-i386.s
    M lld/test/ELF/i386-got-value.s
    M lld/test/ELF/i386-plt.s
    M lld/test/ELF/i386-relative.s
    M lld/test/ELF/i386-tls-dynamic.s
    M lld/test/ELF/i386-tls-gdiele.s
    M lld/test/ELF/i386-tls-ie-local.s
    M lld/test/ELF/i386-tls-ie-shared.s
    M lld/test/ELF/i386-tls-le.s
    M lld/test/ELF/i386-tls-opt-iele-nopic.s
    M lld/test/ELF/i386-zrel-zrela.s
    M lld/test/ELF/mips-26.s
    M lld/test/ELF/mips-eh_frame-pic.s
    M lld/test/ELF/mips-lo16-not-relative.s
    M lld/test/ELF/mips-mgot.s
    M lld/test/ELF/mips-plt-copy.s
    M lld/test/ELF/mips-tls-64.s
    M lld/test/ELF/mips-tls.s
    M lld/test/ELF/mips64-eh-abs-reloc.s
    M lld/test/ELF/pack-dyn-relocs-arm2.s
    M lld/test/ELF/pack-dyn-relocs-relr-loop.s
    M lld/test/ELF/pack-dyn-relocs.s
    M lld/test/ELF/rel-addend-with-rela-input.s
    M lld/test/ELF/relocatable-section-symbol.s
    M lld/test/ELF/relocation-copy-i686.s
    M lld/test/ELF/relocation-none-arm.s
    M lld/test/ELF/relocation-none-i386.s
    M lld/test/ELF/x86-64-zrel-zrela.s
    M llvm/test/CodeGen/AMDGPU/amdgpu-reloc-const.ll
    M llvm/test/CodeGen/AMDGPU/lds-relocs.ll
    M llvm/test/CodeGen/AMDGPU/no-initializer-constant-addrspace.ll
    M llvm/test/CodeGen/AMDGPU/r600-constant-array-fixup.ll
    M llvm/test/CodeGen/AMDGPU/scratch-simple.ll
    M llvm/test/MC/AMDGPU/elf-lds.s
    M llvm/test/MC/AMDGPU/reloc.s
    M llvm/test/MC/ARM/arm-elf-relocations.s
    M llvm/test/MC/ARM/arm-elf-symver.s
    M llvm/test/MC/ARM/arm-thumb-tail-call.ll
    M llvm/test/MC/ARM/directive-tlsdescseq.s
    M llvm/test/MC/ARM/eh-compact-pr0.s
    M llvm/test/MC/ARM/eh-compact-pr1.s
    M llvm/test/MC/ARM/eh-directive-cantunwind.s
    M llvm/test/MC/ARM/eh-directive-handlerdata.s
    M llvm/test/MC/ARM/eh-directive-personality.s
    M llvm/test/MC/ARM/eh-directive-personalityindex.s
    M llvm/test/MC/ARM/eh-directive-section-multiple-func.s
    M llvm/test/MC/ARM/eh-directive-section.s
    M llvm/test/MC/ARM/eh-directive-text-section-multiple-func.s
    M llvm/test/MC/ARM/eh-directive-text-section.s
    M llvm/test/MC/ARM/elf-reloc-condcall.s
    M llvm/test/MC/ARM/elf-thumbfunc-reloc.s
    M llvm/test/MC/ARM/elf-thumbfunc-reloc2.s
    M llvm/test/MC/ARM/mixed-arm-thumb-bl-fixup.ll
    M llvm/test/MC/ARM/reloc-directive.s
    M llvm/test/MC/ARM/target-expressions.s
    M llvm/test/MC/ARM/thumb-far-jump.s
    M llvm/test/MC/ARM/thumb-movwt-reloc.s
    M llvm/test/MC/ARM/thumb1-branch-reloc.s
    M llvm/test/MC/ARM/thumb2-beq-fixup.s
    M llvm/test/MC/ELF/discriminator.s
    M llvm/test/MC/ELF/gen-dwarf.s
    M llvm/test/MC/ELF/relocation-386.s
    M llvm/test/MC/Mips/micromips-func-addr.s
    M llvm/test/MC/Mips/micromips32r6/relocations.s
    M llvm/test/MC/Mips/mips-data-directives.s
    M llvm/test/MC/Mips/mips-pdr.s
    M llvm/test/MC/Mips/mips32r6/relocations.s
    M llvm/test/MC/Mips/reloc-directive-label-offset.s
    M llvm/test/MC/Mips/reloc-directive.s
    M llvm/test/MC/X86/reloc-directive-elf-32.s
    M llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml
    M llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml
    M llvm/test/Object/dyn-rel-relocation.test
    M llvm/test/Object/yaml2obj-elf-rel-noref.yaml
    M llvm/test/Object/yaml2obj-elf-rel.yaml
    M llvm/test/tools/llvm-objcopy/ELF/basic-relocations.test
    M llvm/test/tools/llvm-objcopy/ELF/localize-hidden.test
    M llvm/test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
    M llvm/test/tools/llvm-objcopy/ELF/relocations-no-symtab.test
    M llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
    M llvm/test/tools/llvm-readobj/ELF/dynamic-reloc.test
    M llvm/test/tools/llvm-readobj/ELF/reloc-addends.test
    M llvm/test/tools/llvm-readobj/ELF/relocation-errors.test
    M llvm/test/tools/llvm-readobj/ELF/relocations.test
    M llvm/test/tools/llvm-readobj/ELF/relr-relocs.test
    M llvm/test/tools/yaml2obj/ELF/relocation-implicit-symbol-index.yaml
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] - For SHT_REL relocations, don't display an addend.

This is https://bugs.llvm.org/show_bug.cgi?id=44257.

In LLVM style we always print `0` as addend when dumping
SHT_REL relocations. It is confusing, this patch stops
printing it as the first comment on the bug page suggests.

Differential revision: https://reviews.llvm.org/D93033




More information about the All-commits mailing list