On 22/06/11 16:23, Ian Lance Taylor wrote:
You don't need to do that, you just need to tell the assembler to not
fully resolve the difference between two text symbols, but to leave it
to the linker as a PC-relative reloc. In gas you typically do this by
defining DIFF_EXPR_OK in your config/tc-CPU.h file.
Thanks, I will give it a try.
In order to tell GCC not to remove the function referenced by
__function_size(<arg>) builtin, I found the FUNCTION_DECL and did
TREE_USED(<arg>) = 1 however this didn't help because the function was
removed nonetheless.
I thought this was the same as using __attribute__((used)) on a function
declaration (which works).
--
PMatos