Using --nostdlib

  • ivan

    ivan - 2011-05-09

    I'm trying to exclude the stdlib and coming up with errors that I cant figure out how to resolve. any help would be appreciated.


    sdcc  -V -Wl-rbBANK5=0x28000 -model-large -codeseg BANK5 -nostdlib -no-xinit-opt -main-return -xram-loc 0x1B00 -xram-size 0x400 ^
    x_App.rel     ^
    _gptrget.rel   ^
    _spx.rel       ^
    crtxstack.rel  ^
    crtclear.rel   ^
    crtstart.rel   ^
    crtxclear.rel  ^
    crtxinit.rel   ^
    crtpagesfr.rel ^


    Building x_App.c
    + C:\PROGRA~2\SDCC\bin\sdld.exe -nf ""
    ASlink-Warning-No definition of area BANK5

    ?ASlink-Warning-Undefined Global '__start__xstack' referenced by module ''
    + C:\PROGRA~2\SDCC\bin\sdld.exe -nf "" returned errorcode 2
    Press any key to continue . . .

  • Maarten Brock

    Maarten Brock - 2011-05-09

    You use -no-xinit-opt so why do you link crtxinit.rel?
    And you're not using -xstack so why do you link _spx.rel?
    And which module was compiled with -codeseg BANK5? It has no purpose on the linking command line.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks