diff options
author | peter <peter@FreeBSD.org> | 2002-09-23 06:11:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-09-23 06:11:29 +0000 |
commit | 1e5c466a5216b4f283c29f68b3e51d08a99833fc (patch) | |
tree | f435ca08a2637edc0d7163be9df09b4b3f9e46f9 /lib/libc/stdlib | |
parent | 5f1e8c6326db2601e1228565e996830319ae2a42 (diff) | |
download | FreeBSD-src-1e5c466a5216b4f283c29f68b3e51d08a99833fc.zip FreeBSD-src-1e5c466a5216b4f283c29f68b3e51d08a99833fc.tar.gz |
Add a __section(x) macro as well. Use this in linker_set.h. ie:
static void const * const __set_##set##_sym_##sym
__attribute__((__section__("set_" #set),__unused__)) = &sym
becomes:
static void const * const __set_##set##_sym_##sym
__section("set_" #set) __unused = &sym
Like the other macros, these #define away for unrecognized compilers or
lint.
Also, fix the argments in the previous commit for the non-gcc case. lint
might be a bit happier about that. Note that the gcc <= 2.6 case
needs some research.
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions