)]}'
{
  "commit": "f48364f97320ffc60dd4b567dd4e4f2336c5e619",
  "tree": "fb1125ae7212902da6f886238aa9ebb02e0c2b46",
  "parents": [
    "92228a334ba2a775277fc4a8441dd926c26d33c1"
  ],
  "author": {
    "name": "Fangrui Song",
    "email": "maskray@google.com",
    "time": "Wed Nov 24 18:05:45 2021 -0800"
  },
  "committer": {
    "name": "Fangrui Song",
    "email": "maskray@google.com",
    "time": "Fri Dec 03 14:59:51 2021 -0800"
  },
  "message": "gold: Add --pack-dyn-relocs\u003drelr for arm/aarch64/x86-64 [PR 28601]\n\nelfcpp/\n    * elfcpp.h (SHT): New constant SHT_RELR.\n    (DT): New constants DT_SYMTAB_SHNDX/DT_RELRSZ/DT_RELR/DT_RELRENT.\n    (Elf_sizes): New static data member relr_size.\ngold/\n    * options.h (class General_options): Add pack_dyn_relocs,\n    Pack_dyn_relocs, relr_relocs, and pack_dyn_relocs_enum_.\n    * options.cc (General_options::relr_relocs): Define.\n    * reloc-types.h (Reloc_types\u003celfcpp::SHT_RELR, size, big_endian\u003e):\n    New.\n    * layout.h (Layout::add_target_dynamic_tags): Add dyn_relr.\n    * layout.cc (Layout::add_target_dynamic_tags): Add dyn_relr.\n    * output.h (set_current_data_size_for_child): Remove assert.\n    (Output_reloc\u003celfcpp::SHT_RELR, dynamic, size, big_endian\u003e): New.\n    (Output_data_reloc\u003celfcpp::SHT_RELR, dynamic, size, big_endian\u003e): New.\n    * output.cc (Output_data_reloc_base): Set entsize for SHT_RELR.\n    (do_write): Define.\n    (Output_data_reloc\u003celfcpp::SHT_RELR, true, *, *\u003e): Instantiate.\n    * aarch64.cc (Target_aarch64): Add Relr_section,\n    relr_dyn_section, and relr_dyn_.\n    (do_relax): Check SHT_RELR.\n    (Target_aarch64::Scan::local): Check SHT_RELR.\n    (Target_aarch64::Scan::global): Check SHT_RELR.\n    * arm.cc (Target_arm): Add Relr_section,\n    relr_dyn_section, and relr_dyn_.\n    (do_relax): Check SHT_RELR.\n    (Target_arm::Scan::local): Check SHT_RELR.\n    (Target_arm::Scan::global): Check SHT_RELR.\n    * x86_64.cc (Target_x86_64): Add Relr_section,\n    relr_dyn_section, and relr_dyn_.\n    (do_relax): Check SHT_RELR.\n    (Target_x86_64::Scan::local): Check SHT_RELR.\n    (Target_x86_64::Scan::global): Check SHT_RELR.\n    * testsuite/Makefile.am: New tests relr_arm.sh relr_aarch64.sh\n      relr_x86_64.sh.\n    * testsuite/relr_1.s: New.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fdee7ce3b8b6f93868d5366ce340063bd8ca5fea",
      "old_mode": 33188,
      "old_path": "elfcpp/elfcpp.h",
      "new_id": "cce002a08e73a7895866061fcf53335425df3ef8",
      "new_mode": 33188,
      "new_path": "elfcpp/elfcpp.h"
    },
    {
      "type": "modify",
      "old_id": "33485de61f6cb55abfce9e35b0389f8d384b8f52",
      "old_mode": 33188,
      "old_path": "gold/aarch64.cc",
      "new_id": "6d55f325d20d9de07afaf1c148abd9fdeec03f50",
      "new_mode": 33188,
      "new_path": "gold/aarch64.cc"
    },
    {
      "type": "modify",
      "old_id": "a5a01bcd60ecc3e70148a4f0269864d99a9e630d",
      "old_mode": 33188,
      "old_path": "gold/arm.cc",
      "new_id": "5a96faa93b29621596b06ca3e6ff911f258c2b88",
      "new_mode": 33188,
      "new_path": "gold/arm.cc"
    },
    {
      "type": "modify",
      "old_id": "38e9bceec7e25d93f1fbf54433cf9e5c0b24fa69",
      "old_mode": 33188,
      "old_path": "gold/layout.cc",
      "new_id": "3b53b45035de74092f1cb4a6f958d0d0c03eba84",
      "new_mode": 33188,
      "new_path": "gold/layout.cc"
    },
    {
      "type": "modify",
      "old_id": "05c31714e47da187e8bb8a03f891ef569e09d212",
      "old_mode": 33188,
      "old_path": "gold/layout.h",
      "new_id": "a4a4f6596bd2c1f891c1807103fe361423280bc5",
      "new_mode": 33188,
      "new_path": "gold/layout.h"
    },
    {
      "type": "modify",
      "old_id": "5a55bd8ba6dee2a66bbee64ef333414021d1bcd8",
      "old_mode": 33188,
      "old_path": "gold/options.cc",
      "new_id": "19dbb284eb3859d2f33e983b55b838afb805ca62",
      "new_mode": 33188,
      "new_path": "gold/options.cc"
    },
    {
      "type": "modify",
      "old_id": "47299a37834c8f3196492b676eb45c374e3d7dc7",
      "old_mode": 33188,
      "old_path": "gold/options.h",
      "new_id": "9512cacd8f89ce19ddc5ebaabe1c1093b06082ae",
      "new_mode": 33188,
      "new_path": "gold/options.h"
    },
    {
      "type": "modify",
      "old_id": "f2890c87f8ccaa7f5c15bdde8e98a6ec10e5fa20",
      "old_mode": 33188,
      "old_path": "gold/output.cc",
      "new_id": "ad91412432303ad97e5039f5164ac0adcb328a89",
      "new_mode": 33188,
      "new_path": "gold/output.cc"
    },
    {
      "type": "modify",
      "old_id": "9f1ed6cc5679b12177e64f1618883f4fadf1eccc",
      "old_mode": 33188,
      "old_path": "gold/output.h",
      "new_id": "97c39aab72651e01df97ce049d021460ea7867cd",
      "new_mode": 33188,
      "new_path": "gold/output.h"
    },
    {
      "type": "modify",
      "old_id": "106c54c1be6db820063bf1fba66817114a66094f",
      "old_mode": 33188,
      "old_path": "gold/reloc-types.h",
      "new_id": "935bab0f5ece41c18aa609267935bd5404948521",
      "new_mode": 33188,
      "new_path": "gold/reloc-types.h"
    },
    {
      "type": "modify",
      "old_id": "38e54818f48576a0efce24b5af8bda1cdb335927",
      "old_mode": 33188,
      "old_path": "gold/testsuite/Makefile.am",
      "new_id": "f124919adff6c750272a718451988c9d639d4b1b",
      "new_mode": 33188,
      "new_path": "gold/testsuite/Makefile.am"
    },
    {
      "type": "modify",
      "old_id": "7b4b7832d38e1677df3fb9f461271969217b7efd",
      "old_mode": 33188,
      "old_path": "gold/testsuite/Makefile.in",
      "new_id": "7c420a3ee99ebea3ab681ed312f34b3128d77073",
      "new_mode": 33188,
      "new_path": "gold/testsuite/Makefile.in"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7828ac8e5682b732c100826101e86ef2e6c6dead",
      "new_mode": 33188,
      "new_path": "gold/testsuite/relr_1.s"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "124e7056875d614565ada3ebb9b7e7424e221dcf",
      "new_mode": 33261,
      "new_path": "gold/testsuite/relr_aarch64.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "79fc477ef4fbf96fe7230809566f10fefc616084",
      "new_mode": 33261,
      "new_path": "gold/testsuite/relr_arm.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "55380d63c0215b7cda7281666849bc28f3d0a663",
      "new_mode": 33261,
      "new_path": "gold/testsuite/relr_x86_64.sh"
    },
    {
      "type": "modify",
      "old_id": "2e4b2a701340e2ffa92a891f4dfd419c174df377",
      "old_mode": 33188,
      "old_path": "gold/x86_64.cc",
      "new_id": "41863edd48c7c1d56005b7b9308161b1303b788c",
      "new_mode": 33188,
      "new_path": "gold/x86_64.cc"
    }
  ]
}
