Fixes for gcc 3.4 (-funit-at-a-time). Reduced size of stubs a little bit.

committer: mfx <mfx> 1084323518 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2004-05-12 00:58:38 +00:00
parent 55cde23f10
commit 7ce85ab712
6 changed files with 34 additions and 9 deletions
+5 -1
View File
@@ -128,7 +128,7 @@ static uint32_t ascii5(char *p, uint32_t v, unsigned n)
static char *
__attribute__((cdecl))
__attribute_cdecl
do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
{
(void)len; (void)prot; (void)flags; (void)fd; (void)offset;
@@ -158,6 +158,9 @@ do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
// which causes too many offsets to expand from 1 byte to 4.
static int
#if (ACC_CC_GNUC >= 0x030300)
__attribute__((__noinline__, __used__, __stdcall__))
#endif
go_self(char const *tmpname, char *argv[], char *envp[])
{
// Old FreeBSD does not have /proc/self, so use /proc/<pid> instead.
@@ -198,6 +201,7 @@ go_self(char const *tmpname, char *argv[], char *envp[])
return fdi;
}
/*************************************************************************
// UPX & NRV stuff
**************************************************************************/