)]}'
{
  "commit": "7c4643efe7befea8e5063e8b56c0400fd8cee2d5",
  "tree": "d507544018b72f387fa5ebd19ee7488f53728489",
  "parents": [
    "5800c9abd08ab38aebbb67315364fe64be5a06bf"
  ],
  "author": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Fri Jan 28 23:08:27 2022 +1030"
  },
  "committer": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Sat Jan 29 11:29:17 2022 +1030"
  },
  "message": "objcopy --only-keep-debug\n\nFrom: Peilin Ye \u003cpeilin.ye@bytedance.com\u003e\nobjcopy\u0027s --only-keep-debug option has been broken for ELF files since\ncommit 8c803a2dd7d3.\n\n  1. binutils/objcopy.c:setup_section() marks non-debug sections as\n     SHT_NOBITS, then calls bfd_copy_private_section_data();\n  2. If ISEC and OSEC share the same section flags,\n     bfd/elf.c:_bfd_elf_init_private_section_data() restores OSEC\u0027s\n     section type back to ISEC\u0027s section type, effectively undoing\n     \"make_nobits\".\n\n\t* objcopy.c (setup_section): Act on make_nobits after calling\n\tbfd_copy_private_section_data.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d16d8ee67e4dfe550eaa553671552b2300fbf2e0",
      "old_mode": 33188,
      "old_path": "binutils/objcopy.c",
      "new_id": "d53aa5c6000f093b84a47c17b302365ab635526b",
      "new_mode": 33188,
      "new_path": "binutils/objcopy.c"
    }
  ]
}
