Actually it is the output of obj-res. I only put
section attribute at the function prototypes.

Could you tell me how to figure out where is 
something like ".data+0x1998". I can't find it in the
objdump output. Or I may use some options?

Thanks,
--- John Marshall <[EMAIL PROTECTED]>
wrote:
> On Wed, 20 Aug 2003 11:45:44 -0700 (PDT), Khaki
> Wizard wrote:
> > When I multi-sectioned my C++ program, g++ has
> some warnings like:
> > g2palm:.data+0x1998: warning: reloc relative to
> > strange section 'SECT2'
> 
> These are messages from build-prc, not
> m68k-palmos-g++.
> 
> Congratulations; this diagnostic is not easy to
> produce.  The most likely
> way to get it is via putting a section attribute on
> something that is not
> code.  (Because the name of the technique is
> "multiple *code* sections",
> it's not easy to imagine why anyone might do that
> :-).)  You probably also
> have to initialise some other global variable to
> point to that something.
> 
> Where do your "SECT1" and "SECT2" section
> annotations appear?  Only on
> functions, one hopes (and conceivably on constant
> data, but here there
> be dragons).
> 
> You can track this down even more quickly by using
> objdump or nm to find
> out which of your global variables is at
> .data+0x1998, and looking at its
> initialiser.
> 
>     John
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

Reply via email to