No changes between revisions
/contrib/sdk/sources/newlib/libc/Makefile |
3,7 → 3,7 |
AR = kos32-ar |
LD = kos32-ld |
|
CFLAGS = -c -O2 -fno-ident -fomit-frame-pointer -fexceptions -DBUILD_DLL -DMISSING_SYSCALL_NAMES |
CFLAGS = -c -O2 -fno-ident -fomit-frame-pointer -fexceptions -DMISSING_SYSCALL_NAMES |
LDFLAGS = -shared -s -T libcdll.lds --out-implib libc.dll.a --image-base 0 |
#LDFLAGS+= --output-def libc.orig.def |
ARFLAGS = crs |
15,7 → 15,7 |
|
NAME:= libc |
|
DEFINES:= -D_IEEE_LIBM -DHAVE_RENAME |
DEFINES:= -D_IEEE_LIBM -DHAVE_RENAME -DBUILD_LIBC |
|
INCLUDES:= -I $(LIBC_INCLUDES) |
|
/contrib/sdk/sources/newlib/libc/app.lds |
46,6 → 46,19 |
___RUNTIME_PSEUDO_RELOC_LIST_END__ = .; |
__RUNTIME_PSEUDO_RELOC_LIST_END__ = .; |
} |
|
.eh_frame ALIGN(16) : |
|
{ |
|
___EH_FRAME_BEGIN___ = .; |
*(.eh_frame*); |
+ __EH_FRAME_END__ = .; |
+ |
+ |
+ } |
+ |
.CRT ALIGN(16) : |
{ |
___crt_xc_start__ = . ; |
@@ -113,7 +126,6 @@ |
*(.debug$F) |
*(.drectve) |
*(.note.GNU-stack) |
- *(.eh_frame) |
*(.comment) |
*(.debug_abbrev) |
*(.debug_info) |
/contrib/sdk/sources/newlib/libc/include/newlib.h |
169,5 → 169,17 |
/* #undef _ICONV_FROM_ENCODING_WIN_1257 */ |
/* #undef _ICONV_FROM_ENCODING_WIN_1258 */ |
|
#ifdef STATIC_LIBC |
#define BUILD_LIBC |
#endif |
|
#ifdef BUILD_LIBC |
#define __EXPORT |
#define __IMPORT |
#else |
#define __EXPORT __attribute__ ((dllexport)) |
#define __IMPORT __attribute__ ((dllimport)) |
#endif |
|
#endif /* !__NEWLIB_H__ */ |
|