Aaron,

Thanks for taking the time to look at my issue.

> if you followed them correctly, whats with the map file?
>
> myapp: $(OBJS) myapp-sections.ld
> gcc $(CFLAGS) -o myapp $(OBJS) myapp-sections.ld
> 
> why are you using myapp-sections.ld here? that should only
> be used when building with myappsections.s file.

I am building my app with myapp-sections.s file. The $(OBJS) variable
contains myapp-sections.o. 
I included the mapfile as shown in the prc-tools manual (below). The
definitions of the functions are in header files which are included in
the appropriate places in the app so that they are visible. I annotated
the definitions of the functions I want in the new section with
"__attribute__ ((section ("section1")))". Is there anything else I
should be doing in addition to this?

The prc-tools instructions I followed were:

.... " 4. Add rules to your Makefile to generate and build the assembler
stub and linker script.

        myapp-sections.o: myapp-sections.s
                m68k-palmos-gcc -c myapp-sections.s 

        myapp-sections.s myapp-sections.ld: myapp.def
                m68k-palmos-multigen myapp.def " ....

I included both these rules in my makefile.

.... " 5. Link the assembler stub into your bfd executable, and use the
linker script to place the extra code sections at appropriate addresses.


        OBJS = ...list of object files... myapp-sections.o

        myapp: $(OBJS) myapp-sections.ld
                m68k-palmos-gcc -o myapp $(OBJS) myapp-sections.ld "
....

I added the myapp-sections.o to my OBJS variable and included
myapp-sections.ld in the build.

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

Reply via email to