]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compiler: add macros to declare section names
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 13:53:45 +0000 (15:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 17:27:41 +0000 (19:27 +0200)
commit5bec4c42ed892ceaa33fafab991dbec0689b1bf5
tree689a27aaaba5a289ef98a717724fae7b283d1a52
parent731f0c6502f96400d293ffe846b8aff7e56fddc6
MINOR: compiler: add macros to declare section names

HA_SECTION() is used as an attribute to force a section name. This is
required because OSX prepends "__DATA, " in front of the declaration.
HA_SECTION_START() and HA_SECTION_STOP() are used as post-attribute on
variable declaration to designate the section start/end (needed only on
OSX, empty on others).

For platforms with an obsolete linker, all macros are left empty. It would
possibly still work on some of them but this will not be needed anyway.
include/haproxy/compiler.h