diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2021-07-02 09:44:59 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2021-07-02 15:50:15 +0100 |
commit | eb817f27e82769aef545d580a0c47a3aa50d1ec4 (patch) | |
tree | 4f5616dd00bcf55988c1314ca420a042ab22c040 /gcc | |
parent | f6aa1c34e4a89c8c93518c49a108f3c43b78ea47 (diff) | |
download | gcc-eb817f27e82769aef545d580a0c47a3aa50d1ec4.zip gcc-eb817f27e82769aef545d580a0c47a3aa50d1ec4.tar.gz gcc-eb817f27e82769aef545d580a0c47a3aa50d1ec4.tar.bz2 |
Darwin, BTF: Provide a suitable section name for BTF [PR101283].
In a similar manner to r12-1960-gcc8453012f75d, this provides a
placeholder section name for BTF data. This change groups BTF
and CTF debug formats in the same segment, but keeps them in
separate sections.
As per the CTF section designation, this should be agreed or
amended to an agreed form before GCC 12 ships.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR debug/101283 - Several tests fail on Darwin with -gctf/gbtf
PR debug/101283
gcc/ChangeLog:
* config/darwin.h (CTF_INFO_SECTION_NAME): Update the
segment to include BTF.
(BTF_INFO_SECTION_NAME): New.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/darwin.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index b7c3af3..6840aeb 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1115,8 +1115,10 @@ extern void darwin_driver_init (unsigned int *,struct cl_decoded_option **); # endif #endif -/* CTF support. */ +/* CTF and BTF support. */ #undef CTF_INFO_SECTION_NAME -#define CTF_INFO_SECTION_NAME "__CTF,__ctf,regular,debug" +#define CTF_INFO_SECTION_NAME "__CTF_BTF,__ctf,regular,debug" +#undef BTF_INFO_SECTION_NAME +#define BTF_INFO_SECTION_NAME "__CTF_BTF,__btf,regular,debug" #endif /* CONFIG_DARWIN_H */ |