Nested function - Avoid it in symbol table

Sam samueldotj@gmail.com
Sat Jun 16 22:42:00 GMT 2012


> It disappears for me when using -O1 or higher, but that's probably due
> to inlining because it's a trivial function. Still, if it isn't by
> default, forcing it to inline could be an approach.
Actually I dont want it to be inlined the reason beingthe function's
text need to be in different section rather than .text.
That is the function is defined as
__attribute__((visibility ("hidden"), noinline, section (".nested_func_text")))

> Another way would be of course to convert it to a normal function. That
> will depend on the kind of magic that it's being done by that macro.

>
> Regards
>



More information about the Gcc-help mailing list