[arm-gnu] Static template member in assigned section -- section type conflict

Carlos O'Donell carlos_odonell at mentor.com
Tue Jan 31 15:03:10 UTC 2012


On 1/30/2012 9:35 PM, Gene Smith wrote:
> Statics print the same address but containing object and non-static element
> c[] differs:
> 
> $ ./a.out
> 0x600d40 &priv
> 0x600e80 &priv.a    <-- static
> 0x600d3c &priv.b    <---static
> 0x600d40 &priv.c[0]
> 0x7fff96482990 &local
> 0x600e80 &local.a    <---static (still .bss)
> 0x600d3c &local.b    <---static (still .mysect)
> 0x7fff96482990 &local.c[0]
> 

That looks good to me. You may want to add this 
as a regression test to your application to 
ensure that the tools keep working the same way.

You are relying on some implementation defined
behaviour here so it might change in the future.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos at codesourcery.com
+1 (613) 963 1026



More information about the arm-gnu mailing list