[all-commits] [llvm/llvm-project] 9bb4cd: [llvm-objcopy] Support CREL

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jul 8 09:32:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9bb4cd5977f8a0d6f1d6cc00cb707ed2db27f1c0
      https://github.com/llvm/llvm-project/commit/9bb4cd5977f8a0d6f1d6cc00cb707ed2db27f1c0
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M llvm/lib/ObjCopy/ELF/ELFObject.cpp
    M llvm/lib/ObjCopy/ELF/ELFObject.h
    A llvm/test/tools/llvm-objcopy/ELF/crel.test
    M llvm/test/tools/llvm-objcopy/ELF/reloc-error-remove-symtab.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test

  Log Message:
  -----------
  [llvm-objcopy] Support CREL

llvm-objcopy may modify the symbol table and need to rewrite
relocations. For CREL, while we can reuse the decoder from #91280, we
need an encoder to support CREL.

Since MC/ELFObjectWriter.cpp has an existing encoder, and MC is at a
lower layer than Object, extract the encoder to a new header file
llvm/MC/MCELFExtras.h.

Link: https://discourse.llvm.org/t/rfc-crel-a-compact-relocation-format-for-elf/77600

Pull Request: https://github.com/llvm/llvm-project/pull/97521



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list