Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Why were the arm syscalls removed XDC Tools v3.25.05.94?(Application linking fails with undefined references to _getpid and _kill)
Why were the arm syscalls removed XDC Tools v3.25.05.94? [message #1232895] Sat, 18 January 2014 01:45 Go to next message
Alexei Colin is currently offline Alexei ColinFriend
Messages: 8
Registered: October 2013
Junior Member
In XDC Tools v3.25.03.72 there were several syscall definitions in gnu.targets.arm/syscalls.c, but all of them except _exit are no longer there in v3.25.05.94. The linker (arm-none-eabi-) complains about undefined _kill and _getpid. A workaround is to define those in the application source (by copying from syscalls.c in the previous version of XDC Tools).

What's the rationale for the change and what's a *good* way to adapt the application?
Re: Why were the arm syscalls removed XDC Tools v3.25.05.94? [message #1233986 is a reply to message #1232895] Tue, 21 January 2014 00:50 Go to previous message
Ashish Kapania is currently offline Ashish KapaniaFriend
Messages: 1
Registered: January 2014
Junior Member
Hi Alexie,

You can link with one of the BSP libraries that are shipped with GNU tools - libnosys.a or librdimon.a (if semi-hosting is enabled).

The syscalls lib present in older xdctools was identical to libnosys.a in GNU tools and so we decided to get rid of our syscalls lib in favor of using the BSP libraries from the tools.

We still have _exit syscall as there is a bug in CCS semihost support because of which it does not support semi-hosted _exit() call. Once that is fixed, we will remove _exit() also and get rid of syscalls.c from gnu targets.

Previous Topic:XsScript debugging in Eclipse
Next Topic:GUI designer tool for XGCONF?
Goto Forum:

Current Time: Fri Jul 19 06:07:55 GMT 2024

Powered by FUDForum. Page generated in 0.03520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top