symbol size as function size
Paulo J Matos
pocmatos@gmail.com
Fri Jun 24 11:10:00 GMT 2011
On Fri, 24 Jun 2011 12:01:49 +0930, Alan Modra wrote:
>
> a) Invent an assembler syntax that allows access to ELF symbol size,
> "sum@size" perhaps. (I'm assuming this is ELF only.) "sum" would
> not even need to be a defined symbol, it could be external.
> b) Arrange for the assembler to emit a relocation on uses of
> "sum@size", R_XXX_SIZE against symbol "sum".
> c) Teach the linker relaxation functions to update ELF symbol size,
> and add processing of the new relocation.
I guess I found out why you didn't mention md_allow_local_subtract. It's
not available in 2.17. I will talk about upgrading to 2.21 and decide then
on the best course of action.
Thank you all for the help,
--
PMatos
More information about the Binutils
mailing list