]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto, Darwin: Fix offload section names.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 16 Jan 2024 08:45:26 +0000 (08:45 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 18 Jan 2024 14:02:19 +0000 (14:02 +0000)
commit1d82a2d933efd49a895873545a46f4945c716654
treed33572a743b452aedba682ce634635570ebebb50
parentefe4ea2754f5488dd84eb1a76815c1177dc6897c
lto, Darwin: Fix offload section names.

Currently, these section names have wrong syntax for Mach-O.
Although they were added some time ago; recently added tests are
now emitting them leading to new fails on Darwin.

This adds a Mach-O variant for each.

gcc/ChangeLog:

* lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX,
OFFLOAD_VAR_TABLE_SECTION_NAME, OFFLOAD_FUNC_TABLE_SECTION_NAME,
OFFLOAD_IND_FUNC_TABLE_SECTION_NAME): Provide Mach-O syntax
versions when the object format is Mach-O.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/lto-section-names.h