------- Comment #1 from pinskia at gcc dot gnu dot org 2009-08-12 16:56 ------- For you example why can you do something like: static void *bazsection1[] __attribute__((section("baz"), used)) = { (void*)foo, (void*)(sizeof(foo)), (void*)(bar) };
This seems like a better option than using inline-asm and cleaner and more portable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41045