UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
1,664 Views
Registered: ‎01-08-2014

EDK 14.7 how avoid libc on gcc ?

Hi,

 

I want to compile a program for MicroBlaze without using standard gcc libraries, but using "startup files".

 

I read the gcc guide and found the option "-nodefaultlibs" :

 

Do not use the standard system libraries when linking.  Only the
libraries you specify will be passed to the linker.  The standard
startup files are used normally, unless -nostartfiles is used.  The
compiler may generate calls to memcmp, memset, and memcpy for Sys-
tem V (and ISO C) environments or to bcopy and bzero for BSD envi-
ronments.  These entries are usually resolved by entries in libc.
These entry points should be supplied through some other mechanism
when this option is specified.

but it does not seem to work.

 

Does anyone have any additional information ?

 

Thanks very much.

 

moreasm

0 Kudos