aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-04-14 10:18:13 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2025-04-14 10:18:13 +0200
commit5a32e85810d33dc46b1b5fe2803ee787d40709d5 (patch)
tree385362048831df24c67edc357cacd537a947779e /libjava/java/util
parent5c82694319a168a1369bafa4c6e21b664a5d0bc8 (diff)
downloadgcc-5a32e85810d33dc46b1b5fe2803ee787d40709d5.zip
gcc-5a32e85810d33dc46b1b5fe2803ee787d40709d5.tar.gz
gcc-5a32e85810d33dc46b1b5fe2803ee787d40709d5.tar.bz2
driver: On linux hosts disable ASLR during -freport-bug [PR119727]
Andi had a useful comment that even with the PR119727 workaround to ignore differences in libbacktrace printed addresses, it is still better to turn off ASLR when easily possible, e.g. in case some address leaks in somewhere in the ICE message elsewhere, or to verify the ICE doesn't depend on a particular library/binary load addresses. The following patch adds a configure check and uses personality syscall to turn off randomization for further -freport-bug subprocesses. 2025-04-14 Jakub Jelinek <jakub@redhat.com> PR driver/119727 * configure.ac (HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE): New check. * gcc.cc: Include sys/personality.h if HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE is defined. (try_generate_repro): Call personality (personality (0xffffffffU) | ADDR_NO_RANDOMIZE) if HOST_HAS_PERSONALITY_ADDR_NO_RANDOMIZE is defined. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'libjava/java/util')
0 files changed, 0 insertions, 0 deletions