aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gnatchop.adb
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2025-08-09 08:19:08 +0100
committerIain Sandoe <iain@sandoe.co.uk>2025-08-13 18:23:12 +0100
commit4db9571488eb9f39f0b06435a8642a4f11e82dcf (patch)
tree2fbacfa4b0ed083d20b6a21b9c7a97657c2a5f3f /gcc/ada/gnatchop.adb
parente31a353f1e7c5fe24a6b9d881adabfeed99dc845 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
Darwin: Handle string constants specially when asan is enabled.HEADtrunkmaster
The Darwin ABI uses a different section for string constants when address sanitizing is enabled. This adds defintions of the asan- specific sections and switches string constants to the correct section. It also makes the string constant symbols linker-visible when asan is enabled, but not otherwise. gcc/ChangeLog: * config/darwin-sections.def (asan_string_section, asan_globals_section, asan_liveness_section): New. * config/darwin.cc (objc_method_decl): Use asan sections when asan is enabled. (darwin_encode_section_info): Alter string constant linker visibility depending on asan. (machopic_select_section): Use the asan sections when asan is enabled. gcc/testsuite/ChangeLog: * gcc.dg/torture/darwin-cfstring-3.c: Adjust for amended string labels. * g++.dg/torture/darwin-cfstring-3.C: Likewise. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/ada/gnatchop.adb')
0 files changed, 0 insertions, 0 deletions