Ntpd config file support
Cathey, Jim
jcathey at ciena.com
Sat Mar 22 00:03:40 UTC 2014
Gcc has an attribute you can assign, I'm using it
to push some .idata into .text that I want read-only.
#ifndef TEXTSEG
# ifdef __GNUC__
# define TEXTSEG __attribute__((section (".text#")))
# else
# define TEXTSEG
# endif
#endif
...
const Type instance[] TEXTSEG = {...};
...
You could use an INIT segment, and then have the linker
put all attributed functions (in it) together. I'm assuming
you can bludgeon gcc into labeling functions with a segment.
-- Jim
More information about the busybox
mailing list