Ton,

Thanks for your reply

> - Do *not* specify a section for a global variable.
> If you do, there is a chance of overlapping variable 
> references (as you noticed).

So if I did
- var1 in default section
- var2 in section 1

The compiler would generate code to access:
- var1 at offset 0 in default section
- var2 at offset 0 in in section1

But the the linker creates one section for all data
So var1 and var2 overlap

Correct?
 
> P.S. Is this the same problem you addressed in tools-forum?

No it's not the same issue; we've been having problems 
with gdb way before someone on our team tried putting 
variables in sections.

Thanks
Nicolas

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to