]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Darwin] Suppress emitting empty ctor/dtor sections.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Oct 2019 19:20:43 +0000 (19:20 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Oct 2019 19:20:43 +0000 (19:20 +0000)
commit9b38282bb77d6b6f679e28f57bd8397a8eb9af52
tree6695dec5074aa7901b830e506f8466b72ed7552b
parent886d119acb6baa8bcc8706720e8362bdae4a5041
[Darwin] Suppress emitting empty ctor/dtor sections.

Older versions of GCC emit empty .constructor/.destructor sections
whenever building for C++. In fact, these sections are only used for
kernel mode code - so don't emit them unless that's what we're
building.

gcc/ChangeLog:

2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
sections when building kernel extension code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276923 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/config/darwin.c