summaryrefslogtreecommitdiff
path: root/src/basic/static-destruct.h
Commit message (Collapse)AuthorAgeFilesLines
* static-destruct: add missing closing '(' in commentLennart Poettering2019-11-011-2/+2
|
* Merge pull request #11031 from poettering/gcc-attr-cleanupLennart Poettering2018-12-031-8/+12
|\ | | | | various gcc attribute clean-ups
| * static-destruct: turn on new _variable_no_sanitize_address_ variable for ↵Lennart Poettering2018-12-031-1/+5
| | | | | | | | STATIC_DESTRUCTOR_REGISTER
| * sd-bus,static-destruct: clean up how we do our ELF section magicLennart Poettering2018-12-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This cleans up a bit how we set up things for the ELF section magic: 1. Let's always use our gcc macros, instead of __attribute__ directly 2. Align our structures to sizeof(void*), i.e. the pointer size, rather than a fixed 8 or __BIGGEST_ALIGNMENT__. The former is unnecessarily high for 32bit systems, the latter too high for 64bit systems. gcc seems to use ptr alignment for static variables itself, hence this should be good enough for us too. Moreover, the Linux kernel also uses pointer alginment for all its ELF section registration magic, hence this should be good enough for us too. 3. Let's always prefix the sections we create ourself with SYSTEMD_, just to make clear where they come from. 4. Always align the pointer we start from when iterating through these lists. This should be unnecessary, but makes things nicely systematic, as we'll align all pointers we use to access these sections properly.
| * tree-wide: use gcc attribute macros where appropriateLennart Poettering2018-12-031-2/+2
| | | | | | | | We have these macros already, hence use them.
* | util: define free_func_tYu Watanabe2018-12-021-1/+2
|/
* util: add set of macros for declaring _cleanup_-style destructors for static ↵Lennart Poettering2018-11-191-0/+51
variables