)]}'
{
  "commit": "e067b9d0277039d04698099dc6f42d10c4a2bcb5",
  "tree": "def064dae63d9aa51b3010928d835e58c14c6186",
  "parents": [
    "09292f4ae2ccb46130652f6b310ee7a5227326d3"
  ],
  "author": {
    "name": "Rainer Orth",
    "email": "ro@CeBiTec.Uni-Bielefeld.DE",
    "time": "Tue Aug 19 12:52:41 2025 +0200"
  },
  "committer": {
    "name": "Rainer Orth",
    "email": "ro@CeBiTec.Uni-Bielefeld.DE",
    "time": "Tue Aug 19 12:52:41 2025 +0200"
  },
  "message": "bfd: Fix Solaris/x86 ELF_MAXPAGESIZE\n\nI noticed that the alignment of the .text and .data sections on\nSolaris/x86 doesn\u0027t match what /bin/ld does: gld uses the original i386\npsABI default of 0x1000, while Solaris has moved to larger values as can\nbe seen both in the Oracle Solaris 11.4 Linkers and Libraries Guide,\nch. 15, Program Loading and Dynamic Linking, p. 15-6 and the system\nheaders (\u003csys/elf_{i386,amd64}.h\u003e) that have\n\nwhile the Solaris/SPARC values are already correct.\n\nTo fix this, on i386 it\u0027s sufficient to redefine ELF_MAXPAGESIZE.  On\nx86_64, unlike i386, ELF_COMMONPAGESIZE is hardcoded as 0x1000, the\ndefault, so setting ELF_MAXPAGESIZE has no effect on ELF_P_ALIGN.\nSetting ELF_COMMONPAGESIZE to ELF_MAXPAGESIZE, too, fixes that and\nbrings both target in sync.  ELF_MACHINE_CODE is just set to the original\nvalue again, so it\u0027s removed.\n\nTested on {i386,amd64}-pc-solaris2.11, {i686,x86_64}-pc-linux-gnu, and\namd64-pc-freebsd14.0.\n\n2025-07-29  Rainer Orth  \u003cro@CeBiTec.Uni-Bielefeld.DE\u003e\n\n\tbfd:\n\t* elf32-i386.c \u003celf32-i386-sol2\u003e (ELF_MAXPAGESIZE): Redefine.\n\t\u003celf32-iamcu\u003e (ELF_MAXPAGESIZE): Restore previous value.\n\t* elf64-x86-64.c (ELF_COMMONPAGESIZE): Define as ELF_MAXPAGESIZE.\n\t\u003celf64-x86-64-sol2\u003e (ELF_MAXPAGESIZE): Redefine\n\t\u003celf32-x86-64\u003e (ELF_MAXPAGESIZE): Restore previous value.\n\t(ELF_MACHINE_CODE): Remove.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "abe26e476ff0c480fb91c972dd104df12af425a7",
      "old_mode": 33188,
      "old_path": "bfd/elf32-i386.c",
      "new_id": "b755b39ab55c5c36cca6b90959205fa299dbd0ab",
      "new_mode": 33188,
      "new_path": "bfd/elf32-i386.c"
    },
    {
      "type": "modify",
      "old_id": "b6f97b5b69be482d40a0bda21eeee70f9826de1d",
      "old_mode": 33188,
      "old_path": "bfd/elf64-x86-64.c",
      "new_id": "b6fd466178e1489418b3ff0755a65706b06ec538",
      "new_mode": 33188,
      "new_path": "bfd/elf64-x86-64.c"
    }
  ]
}
