diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-09 08:19:08 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-13 18:23:12 +0100 |
commit | 4db9571488eb9f39f0b06435a8642a4f11e82dcf (patch) | |
tree | 2fbacfa4b0ed083d20b6a21b9c7a97657c2a5f3f /gcc/testsuite/gcc.target/i386/pr95126-m32-2.c | |
parent | e31a353f1e7c5fe24a6b9d881adabfeed99dc845 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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/testsuite/gcc.target/i386/pr95126-m32-2.c')
0 files changed, 0 insertions, 0 deletions