)]}'
{
  "commit": "070d7af0c56b993806fa47f77b607b1849a2172f",
  "tree": "559bce1d4538befc5797279b6c9e4b544fa2fc05",
  "parents": [
    "443baed56c770aca050d27581d5d6f0c5c168285"
  ],
  "author": {
    "name": "Fangrui Song",
    "email": "i@maskray.me",
    "time": "Wed Mar 27 20:04:59 2024 -0700"
  },
  "committer": {
    "name": "Fangrui Song",
    "email": "i@maskray.me",
    "time": "Wed Mar 27 20:04:59 2024 -0700"
  },
  "message": "[ELF] --export-dynamic: don\u0027t create dynamic sections for non-PIC static links\n\nThe CloudABI (removed from Clang Driver) change from\nhttps://reviews.llvm.org/D29982 does not make sense. GNU ld and gold\ndon\u0027t create dynamic sections for a non-PIC static link when\n--export-dynamic is specified.\n\nCreating dynamic sections is harmful in this scenario because we would\nconsider undefined weak symbols preemptible and generate GLOB_DAT\nrelocations, breaking the expectation that non-PIC static links only\ncontain IRELATIVE relocations.\n\nIn addition, there are other options that export symbols\n(--export-dynamic-symbol, --dynamic-list, etc). It does not make sense\nto special case --export-dynamic.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f14a2376601b0882a0a37ae112ca62060ee35f4b",
      "old_mode": 33188,
      "old_path": "lld/ELF/Driver.cpp",
      "new_id": "b43da7727e22aeb1f943a451149a5913ea26767c",
      "new_mode": 33188,
      "new_path": "lld/ELF/Driver.cpp"
    },
    {
      "type": "delete",
      "old_id": "b0349b85e30343837e4a8f996efa0aa8828cbd65",
      "old_mode": 33188,
      "old_path": "lld/test/ELF/static-with-export-dynamic.s",
      "new_id": "0000000000000000000000000000000000000000",
      "new_mode": 0,
      "new_path": "/dev/null"
    },
    {
      "type": "modify",
      "old_id": "3a9d5f462c21b6ae937eeeb8872cf6ed455d0551",
      "old_mode": 33188,
      "old_path": "lld/test/ELF/weak-undef.s",
      "new_id": "21488023a79e10bb5c253b501c211d50ddffaf78",
      "new_mode": 33188,
      "new_path": "lld/test/ELF/weak-undef.s"
    }
  ]
}
