Hi Guys

I have been making a bootloader (for AT91SAM9261), I have made needed
functions (main, startup) and I have a problem with final linking and making
eboot.exe file. In the output of build -c there is an error "BUILD:
[01:0000000080:ERRORE] Startup.obj : error LNK2001: unresolved external s
ymbol StartUp". It does not matter if in my StartUp.s file there is or there
is not this label (and "EXTERN Startup"). I can't find out, why it happens.
So, could anybody help?
Here is a content of my sources file:

TARGETNAME=EBOOT
TARGETTYPE=PROGRAM
RELEASETYPE=PLATFORM

_COMMONPUBROOT=$(_PUBLICROOT)\common
__PROJROOT = $(_WINCEROOT)\public\AT91SAM9261_MICROTECH_BIN

EXEENTRY=StartUp
SOURCES=StartUp.s \
main.c \
flash.c \
cdc_enumerate.c \
init_SAM9.c \
xmodem.c
TARGETLIBS=$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\blcommon.lib \
$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\fulllibc.lib
WINCETARGETFILES=BootImage

StartUp code is without any errors.

Re: Bootloader - unresolved external by Geoff

Geoff
Mon Nov 27 13:03:19 CST 2006

I think a typo is killing you.

Spot the difference:

EXTERN Startup
EXEENTRY=StartUp


StartUp != Startup



Geoff
--

George H. wrote:
> Hi Guys
>
> I have been making a bootloader (for AT91SAM9261), I have made needed
> functions (main, startup) and I have a problem with final linking and making
> eboot.exe file. In the output of build -c there is an error "BUILD:
> [01:0000000080:ERRORE] Startup.obj : error LNK2001: unresolved external s
> ymbol StartUp". It does not matter if in my StartUp.s file there is or there
> is not this label (and "EXTERN Startup"). I can't find out, why it happens.
> So, could anybody help?
> Here is a content of my sources file:
>
> TARGETNAME=EBOOT
> TARGETTYPE=PROGRAM
> RELEASETYPE=PLATFORM
>
> _COMMONPUBROOT=$(_PUBLICROOT)\common
> __PROJROOT = $(_WINCEROOT)\public\AT91SAM9261_MICROTECH_BIN
>
> EXEENTRY=StartUp
> SOURCES=StartUp.s \
> main.c \
> flash.c \
> cdc_enumerate.c \
> init_SAM9.c \
> xmodem.c
> TARGETLIBS=$(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\blcommon.lib \
> $(_COMMONOAKROOT)\lib\$(_CPUDEPPATH)\fulllibc.lib
> WINCETARGETFILES=BootImage
>
> StartUp code is without any errors.