]> gcc.gnu.org Git - gcc.git/commit
Darwin: Place global inits in the correct section.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 1 Sep 2023 08:04:13 +0000 (09:04 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 25 Apr 2024 19:20:16 +0000 (20:20 +0100)
commit084d0c427433d592e29247164b199c1f232f5c68
tree9a2310b667012a4217048d34d1dd2a4d4f156f99
parent9488ad0d780fae91afa910410cb4e6da8d607fd9
Darwin: Place global inits in the correct section.

This handles placement of global initializers into __TEXT,__StaticInit as used
by other platform toolchains.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:

* config/darwin-sections.def (static_init_section): Add the
__TEXT,__StaticInit section.
* config/darwin.c (darwin_function_section): Use the static init
section for global initializers, to match other platform toolchains.

(cherry picked from commit 68dc3e94fd6bd395a8b343533485616dff3fc796)
gcc/config/darwin-sections.def
gcc/config/darwin.c
This page took 0.061571 seconds and 6 git commands to generate.