)]}'
{
  "commit": "defb881754df013e337eb981bc54b5e83fd01fa4",
  "tree": "49a8f61112fb19427b2a69e9b0ce3764f63c96cd",
  "parents": [
    "8406216e94ee15c0b2267a7f1b229a00d6dc772d"
  ],
  "author": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Sun May 07 17:46:57 2023 +0930"
  },
  "committer": {
    "name": "Alan Modra",
    "email": "amodra@gmail.com",
    "time": "Mon May 08 10:11:47 2023 +0930"
  },
  "message": "PR30343, LTO ignores linker reference to _pei386_runtime_relocator\n\nMake a reference to _pei386_runtime_relocator before LTO recompilation.\nThis is done regardless of whether such a reference will be used,\nbecause it can\u0027t be known whether it is needed before LTO.\n\nI also found it necessary to enable long section names for the bfd\ncreated in make_runtime_pseudo_reloc, because otherwise when writing\nit out to the bfd-in-memory we get the section written as .rdata_r\nwhich when read back in leads to a linker warning \".rdata_r: section\nbelow image base\" and likely runtime misbehaviour.\n\n\tPR 30343\n\t* emultempl/pe.em (make_runtime_ref): New function.\n\t(gld${EMULATION_NAME}_before_plugin_all_symbols_read): New function.\n\t(LDEMUL_BEFORE_PLUGIN_ALL_SYMBOLS_READ): Define.\n\t* emultempl/pep.em: Similarly to pe.em.\n\t* pe-dll.c (make_runtime_pseudo_reloc): Set long section names.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1f2a5f310be927e75fc695209a5806345a7b1df8",
      "old_mode": 33188,
      "old_path": "ld/emultempl/pe.em",
      "new_id": "4fe0cf203fb7567d512cce305cc0bb813f31f696",
      "new_mode": 33188,
      "new_path": "ld/emultempl/pe.em"
    },
    {
      "type": "modify",
      "old_id": "ca4acaea1484d1537fc259a5713f5af0af963f37",
      "old_mode": 33188,
      "old_path": "ld/emultempl/pep.em",
      "new_id": "5770df8ed0ad1c3ec4e5dfa358a0f754a3e84255",
      "new_mode": 33188,
      "new_path": "ld/emultempl/pep.em"
    },
    {
      "type": "modify",
      "old_id": "ab13e3bb94ad05adb605aae520461cf60d3b3b13",
      "old_mode": 33188,
      "old_path": "ld/pe-dll.c",
      "new_id": "8d74dba6af0273971cd559a69129c9f5baac8a55",
      "new_mode": 33188,
      "new_path": "ld/pe-dll.c"
    }
  ]
}
