Hi, i have one H-file with the prototypes of ALL functions with this sections:
#define ADM_SECTION  __attribute__ ((section ("adm")))      //Forms a handlers
#define FUN_SECTION  __attribute__ ((section ("fun")))         //Miscellaneus Functions
#define DBS_SECTION  __attribute__ ((section ("dbs")))       //Structs and prototypes 
of ALL functions including PilotMain

the file .ld generated is:

/* DO NOT EDIT!
   This file was automatically generated by m68k-palmos-multigen v2.2
   from AdmnDI.def  */

    .file   "AdmnDI-sections.s"

    .globl  __text__
    .lcomm  __text__,4
    .globl  __text__adm
    .lcomm  __text__adm,4
    .globl  __text__fun
    .lcomm  __text__fun,4
    .globl  __text__dbs
    .lcomm  __text__dbs,4

.text
    .globl  _GccRelocateData
_GccRelocateData:
    bra.w   _GccLoadCodeAndRelocateData

.section ehook
    .long   _GccReleaseCode
//---------------------------------------------

i read  that PilotMain and all functions called in PilotMain are in the first segment. 
But what is ? __text__  or  __text__adm 
?

also, i have problems compiling:

AdmnDI.o: In function `PilotMain':
AdmnDI.c:1876: undefined reference to `__text__adm'
....
AdmnDI.o: In function `GetObjectPtr':
AdmnDI.c:34: undefined reference to `__text__'
.....
AdmnDI.o: In function `GetProductDescFromProductID':
AdmnDI.c:1025: undefined reference to `__text__dbs'
....
AdmnDI.o(fun+0xb22):AdmnDI.c: more undefined references to `__text__dbs' follow
AdmnDI.o: In function `GetProductDescFromProductID':
...
AdmnDI.o: In function `EditMenuHandleEvent':
AdmnDI.c:26: undefined reference to `__text__fun'
AdmnDI.o: In function `EditMenuHandleEvent':

func.o: In function `GetObjectPtr':
func.c:34: undefined reference to `__text__'
func.o: In function `GetProductDescFromProductID':
func.c:1025: undefined reference to `__text__dbs'

func.o(fun+0xb22):func.c: more undefined references to `__text__dbs' follow
func.o: In function `GetProductDescFromProductID':

collect2: ld returned 1 exit status
make: *** [AdmnDI] Error 1

i don't find one example of multisegment code with the handler functions
Please Helpme.
--
Open WebMail Project (http://openwebmail.org)


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

Reply via email to