Based on discussion on the mspgcc-users mailing list[1], this patch changes msp430 to not automatically apply -lnosys when -msim is absent, as this prevents a user from supplying a custom system interface.
The existing behavior providing the CIO alternative can be obtained by explicitly linking -lcio instead, assuming the corresponding newlib patch[2] to move msp430's nosys implementation to libcio.a is also used. gcc/ChangeLog 2014-09-22 Peter A. Bigot <[email protected]> * config/msp430/msp430.h: Remove automatic -lnosys when -msim absent. [1] http://www.mail-archive.com/[email protected]/msg12104.html [2] https://sourceware.org/ml/newlib/2014/msg00465.html Cc: [email protected] Cc: [email protected] Signed-off-by: Peter A. Bigot <[email protected]> --- gcc/config/msp430/msp430.h | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index 91fc91c..068bdad 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -70,7 +70,6 @@ extern bool msp430x; -lgcc \ -lcrt \ %{msim:-lsim} \ -%{!msim:-lnosys} \ --end-group \ %{!T*:%{!msim:%{mmcu=*:--script=%*.ld}}} \ %{!T*:%{!msim:%{!mmcu=*:%Tmsp430.ld}}} \ -- 1.8.5.5
