]> 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>
Mon, 4 Sep 2023 11:25:30 +0000 (12:25 +0100)
commit68dc3e94fd6bd395a8b343533485616dff3fc796
tree9582d0d8871d5af82f5f05ecbf019007be802a55
parent0fe7962afc7c01488432b98b6f442b24946a490d
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.cc (darwin_function_section): Use the static init
section for global initializers, to match other platform toolchains.
gcc/config/darwin-sections.def
gcc/config/darwin.cc
This page took 0.06263 seconds and 5 git commands to generate.