)]}'
{
  "commit": "e046e5399949ff988b6f1528265840a9278aac36",
  "tree": "fe00e94d1062a73c9fe3a2e8609724114bbaba45",
  "parents": [
    "1ac18831d2f1141892c8b1674c8be2e3a36267c6"
  ],
  "author": {
    "name": "Christophe Lyon",
    "email": "christophe.lyon@arm.com",
    "time": "Fri Sep 11 15:20:33 2026 +0200"
  },
  "committer": {
    "name": "Nikita Venkatesh",
    "email": "Nikita.Venkatesh@arm.com",
    "time": "Fri Sep 18 17:02:21 2026 +0100"
  },
  "message": "arm: Fix encoding of SG stubs in BE8 mode\n\nThe Secure Gateway veneers in section .gnu.sgstubs are not part of the\nstub group (see dedicated_output_section handling in\nelf32_arm_create_or_find_stub_sec).\n\nAs a result, elf32_arm_final_link does not perform BE8 encoding when\nit processes the regular stub sections.\n\nThis patch adds the same handling for cmse_stub_sec, and a new\ntestcase which checks the raw encoding of the instructions in the\nveneer.\nFor the instructions:\n    e97f e97f    sg\n    f7ef bffe    b.w \u003c__acle_se_exported_entry_veneer3\u003e\n    e97f e97f    sg\n    f7ef bff8    b.w \u003c__acle_se_exported_entry_veneer2\u003e\n\nWe expect\n7fe97fe9 eff7febf 7fe97fe9 eff7f8bf\n\nbut without the fix, we generate:\ne97fe97f f7efbffe e97fe97f f7efbff8\n(that is, bytes are swapped compared to the expected output)\n\nTested on:\narm-linux-gnueabihf\narmv8l-linux-gnueabihf\narmeb-linux-gnueabihf\narm-linux-gnueabi\narm-none-eabi\narmeb-none-eabi\narm-netbsdelf\narm-pe\narm-wince-pe\narm-uclinuxfdpiceabi\narm-vxworks\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a8fca76eb09794d23aafdcda91a0aaf445f8cb6a",
      "old_mode": 33188,
      "old_path": "bfd/elf32-arm.c",
      "new_id": "8a0402102b21b41f05aea8e723b7dc21b648fd17",
      "new_mode": 33188,
      "new_path": "bfd/elf32-arm.c"
    },
    {
      "type": "modify",
      "old_id": "cacd3bddfd46dc78125dc25eff00ff752d8acd93",
      "old_mode": 33188,
      "old_path": "ld/testsuite/ld-arm/arm-elf.exp",
      "new_id": "fce05b7a15a162f4ab7e113e44e5ef278afa9342",
      "new_mode": 33188,
      "new_path": "ld/testsuite/ld-arm/arm-elf.exp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "dda1d2d61547d8c60fb2c876db101979d39ae2bd",
      "new_mode": 33188,
      "new_path": "ld/testsuite/ld-arm/cmse-be8.d"
    }
  ]
}
