]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin: Define a suitable section name for CTF [PR101283]
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 1 Jul 2021 14:02:43 +0000 (15:02 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 1 Jul 2021 15:56:13 +0000 (16:56 +0100)
This is a placeholder name ahead of any CTF implementation on
LLVM (which sets Darwin ABI).  Ideally, we would get agreement
on this choice (or any replacement) before GCC12 is shipped.

PR debug/101283 - Several tests fail on Darwin with -gctf

PR debug/101283

gcc/ChangeLog:

* config/darwin.h (CTF_INFO_SECTION_NAME): New.

gcc/config/darwin.h

index d2b2c141c8ed924b52ecf4eacf0075f1877491a7..b7c3af3b3fa6113f4938826b93c04f7e1a0be029 100644 (file)
@@ -1115,4 +1115,8 @@ extern void darwin_driver_init (unsigned int *,struct cl_decoded_option **);
 # endif
 #endif
 
+/* CTF support.  */
+#undef CTF_INFO_SECTION_NAME
+#define CTF_INFO_SECTION_NAME "__CTF,__ctf,regular,debug"
+
 #endif /* CONFIG_DARWIN_H */