files needed by gnu configuration
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4160 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
de7378b40b
commit
f98936ee9e
3 changed files with 31 additions and 0 deletions
10
SCons/Config/linker_script
Normal file
10
SCons/Config/linker_script
Normal file
|
@ -0,0 +1,10 @@
|
|||
SECTIONS
|
||||
{
|
||||
.text : { *(.text) }
|
||||
.data : { *(.data) }
|
||||
.rdata : { *(.rdata) }
|
||||
.bss : { *(.bss) }
|
||||
.idata : { *(.idata) }
|
||||
.ndata BLOCK(__section_alignment__) : { [ .ndata ] }
|
||||
.rsrc : { *(.rsrc) }
|
||||
}
|
11
SCons/Config/memcpy.c
Normal file
11
SCons/Config/memcpy.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <stdlib.h> // for size_t
|
||||
void *memcpy(void *out, const void *in, size_t len)
|
||||
{
|
||||
char *c_out=(char*)out;
|
||||
char *c_in=(char *)in;
|
||||
while (len-- > 0)
|
||||
{
|
||||
*c_out++=*c_in++;
|
||||
}
|
||||
return out;
|
||||
}
|
10
SCons/Config/memset.c
Normal file
10
SCons/Config/memset.c
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include <stdlib.h> // for size_t
|
||||
void *memset(void *mem, int c, size_t len)
|
||||
{
|
||||
char *p=(char*)mem;
|
||||
while (len-- > 0)
|
||||
{
|
||||
*p++=c;
|
||||
}
|
||||
return mem;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue