New KDS 3 problem - undefined reference to _sbrk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New KDS 3 problem - undefined reference to _sbrk

Jump to solution
2,015 Views
davidsherman
Senior Contributor I

Yesterday things built after upgrading from KDS2 to KDS3, after fixing a couple problems.  Today I changed build configurations, built clean, and now I see this:

 

c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libg_s.a(lib_a-sbrkr.o): In function `_sbrk_r':

sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'

 

What gives?  This built correctly under KDS2.  Interestingly, switching back to the other configuration seems to make it go away.

Labels (1)
1 Solution
1,223 Views
BlackNight
NXP Employee
NXP Employee

have you already added

--specs=nosys.specs

to the linker options?

Erich

View solution in original post

3 Replies
1,224 Views
BlackNight
NXP Employee
NXP Employee

have you already added

--specs=nosys.specs

to the linker options?

Erich

304 Views
zqy6394
Contributor I

Where can I find linker options?

 

thanks

 

Erich

 

0 Kudos
1,223 Views
davidsherman
Senior Contributor I

Ah, I had missed that in the migration page write up.  I've bookmarked it.  Adding that to the linker options seems to have fixed that.  Thank you again, Erich!

0 Kudos