)]}'
{
  "commit": "89dbeac7460eaa2c6b0149b8abfac880ecefbfe3",
  "tree": "8a05d32e7adcc0bb459d06de592ca208605618de",
  "parents": [
    "8b4d46dfdf2023d3da295fc3748ce67f064e3df0"
  ],
  "author": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Tue Dec 06 08:43:31 2022 +1030"
  },
  "committer": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Tue Dec 06 12:11:28 2022 +1030"
  },
  "message": "Compression header enum\n\nDefine an enum instead of using ELFCOMPRESS_ZLIB and ELFCOMPRESS_ZSTD\nin bfd and binutils, and move some functions from bfd.c to compress.c.\nWhen looking at the COFF/PE debug compression support, I wondered\nabout extending it to support zstd.  I likely won\u0027t do that, but\nthe compression header ch_type field isn\u0027t just ELF specific if these\nheaders are to be used in COFF/PE too.\n\nbfd/\n\t* bfd.c (bfd_update_compression_header),\n\t(bfd_check_compression_header, bfd_get_compression_header_size),\n\t(bfd_convert_section_size, bfd_convert_section_contents): Move to..\n\t* compress.c: ..here.\n\t(enum compression_type): New.  Use it throughout file.\n\t* elf.c (_bfd_elf_make_section_from_shdr): Replace uses of\n\tELFCOMPRESS_ZLIB and ELFCOMPRESS_ZSTD with ch_compress_zlib and\n\tch_compress_zstd.\n\t* bfd-in2.h: Regenerate.\nbinutils/\n\t* readelf.c (process_section_headers, dump_section_as_strings),\n\t(dump_section_as_bytes, load_specific_debug_section): Replace\n\tuses of ELFCOMPRESS_ZLIB and ELFCOMPRESS_ZSTD with\n\tch_compress_zlib and ch_compress_zstd.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "15f3c8c8f12018a54efe82d0dc7e8c9a34ba8663",
      "old_mode": 33188,
      "old_path": "bfd/bfd-in2.h",
      "new_id": "24f9305c47c69c7e8f0b0088316d695409d272b7",
      "new_mode": 33188,
      "new_path": "bfd/bfd-in2.h"
    },
    {
      "type": "modify",
      "old_id": "b9d4aa44d9cf3022fd1d7a84179e849128547140",
      "old_mode": 33188,
      "old_path": "bfd/bfd.c",
      "new_id": "8d9c9c6774368b3d24e5eb774aa36d63f92e8cc5",
      "new_mode": 33188,
      "new_path": "bfd/bfd.c"
    },
    {
      "type": "modify",
      "old_id": "6b083468ca8e43e658b5840bb43a308c3cd736e3",
      "old_mode": 33188,
      "old_path": "bfd/compress.c",
      "new_id": "a4e6a8ee7b5225cf805060f5e9f1c4ffb12ca949",
      "new_mode": 33188,
      "new_path": "bfd/compress.c"
    },
    {
      "type": "modify",
      "old_id": "9e490c968c1f726715d31b1fb40ebbad51f991f2",
      "old_mode": 33188,
      "old_path": "bfd/elf.c",
      "new_id": "a013f8885c7ac7e018d16caa9117f0146bb9ce82",
      "new_mode": 33188,
      "new_path": "bfd/elf.c"
    },
    {
      "type": "modify",
      "old_id": "1bd6df9448a12f0705b1547da7a378f732da1ed8",
      "old_mode": 33188,
      "old_path": "binutils/readelf.c",
      "new_id": "bce93782952a3cff19f5460c1b7a4d552106982b",
      "new_mode": 33188,
      "new_path": "binutils/readelf.c"
    }
  ]
}
