-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.securityIssues and PRs related to security.Issues and PRs related to security.
Description
Commit a5012a0 disables PIE (and therefore ASLR) on OS X because it breaks profiling of C++ code. Ideally, we'd figure out a way to keep it turned on except when -prof is specified on the command line.
I believe the only way to do that (except for having two separate binaries, which I don't think we want) is to re-exec the process with the _POSIX_SPAWN_DISABLE_ASLR (256) flag set. The flag is ignored for setuid/setgid binaries so in that respect -Wl,-no_pie is superior.
Metadata
Metadata
Assignees
Labels
c++Issues and PRs that require attention from people who are familiar with C++.Issues and PRs that require attention from people who are familiar with C++.macosIssues and PRs related to the macOS platform / OSX.Issues and PRs related to the macOS platform / OSX.securityIssues and PRs related to security.Issues and PRs related to security.