Renamed runtime loader source files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16935 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,7 +9,7 @@ SubDirCcFlags -fno-builtin ;
|
|||||||
SubDirC++Flags -fno-builtin ;
|
SubDirC++Flags -fno-builtin ;
|
||||||
|
|
||||||
# needed for rld.so only
|
# needed for rld.so only
|
||||||
StaticLibrary librld.a :
|
StaticLibrary libruntime_loader.a :
|
||||||
kernel_vsprintf.c
|
kernel_vsprintf.c
|
||||||
:
|
:
|
||||||
<src!system!libroot!os>syscalls.o
|
<src!system!libroot!os>syscalls.o
|
||||||
@@ -56,18 +56,18 @@ SEARCH on [ FGristFiles kernel_vsprintf.c ]
|
|||||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;
|
SEARCH_SOURCE += [ FDirName $(SUBDIR) arch $(TARGET_ARCH) ] ;
|
||||||
|
|
||||||
Objects
|
Objects
|
||||||
rld.c
|
runtime_loader.c
|
||||||
rldexport.c
|
elf.c
|
||||||
rldelf.c
|
export.c
|
||||||
rldheap.c
|
heap.c
|
||||||
rldaux.c
|
utility.c
|
||||||
arch_relocate.c
|
arch_relocate.c
|
||||||
arch_call_init_term.c
|
arch_call_init_term.c
|
||||||
;
|
;
|
||||||
|
|
||||||
Ld rld.so :
|
Ld rld.so :
|
||||||
[ FGristFiles rld.o rldelf.o rldexport.o rldheap.o rldaux.o arch_relocate.o arch_call_init_term.o ]
|
[ FGristFiles runtime_loader.o elf.o export.o heap.o utility.o arch_relocate.o arch_call_init_term.o ]
|
||||||
librld.a
|
libruntime_loader.a
|
||||||
$(TARGET_GCC_LIBGCC)
|
$(TARGET_GCC_LIBGCC)
|
||||||
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/rld.ld
|
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/rld.ld
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "rld_priv.h"
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
|
|
||||||
typedef void (*init_term_function)(image_id);
|
typedef void (*init_term_function)(image_id);
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2005, Axel Dörfler, [email protected]. All rights reserved.
|
* Copyright 2003-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <runtime_loader.h>
|
#include <runtime_loader.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE_RLD
|
//#define TRACE_RLD
|
||||||
#ifdef TRACE_RLD
|
#ifdef TRACE_RLD
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "rld_priv.h"
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <runtime_loader.h>
|
#include <runtime_loader.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE_RLD
|
//#define TRACE_RLD
|
||||||
#ifdef TRACE_RLD
|
#ifdef TRACE_RLD
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|
||||||
#include <elf32.h>
|
#include <elf32.h>
|
||||||
@@ -22,8 +24,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE_RLD
|
//#define TRACE_RLD
|
||||||
#ifdef TRACE_RLD
|
#ifdef TRACE_RLD
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de.
|
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "rld_priv.h"
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
|
|
||||||
// exported via the rld_export structure in user space program arguments
|
// exported via the rld_export structure in user space program arguments
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002, Manuel J. Petit. All rights reserved.
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
||||||
** Distributed under the terms of the NewOS License.
|
* Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define RLD_SCRATCH_SIZE 65536
|
#define RLD_SCRATCH_SIZE 65536
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
|
* Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
||||||
@@ -7,9 +7,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
#include <user_runtime.h>
|
#include <user_runtime.h>
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
+4
-3
@@ -5,13 +5,14 @@
|
|||||||
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
* Copyright 2002, Manuel J. Petit. All rights reserved.
|
||||||
* Distributed under the terms of the NewOS License.
|
* Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
#ifndef RUN_TIME_LINKER_H
|
#ifndef RUNTIME_LOADER_H
|
||||||
#define RUN_TIME_LINKER_H
|
#define RUNTIME_LOADER_H
|
||||||
|
|
||||||
|
|
||||||
#include <user_runtime.h>
|
#include <user_runtime.h>
|
||||||
#include <runtime_loader.h>
|
#include <runtime_loader.h>
|
||||||
|
|
||||||
|
|
||||||
int runtime_loader(void *arg);
|
int runtime_loader(void *arg);
|
||||||
int open_executable(char *name, image_type type, const char *rpath);
|
int open_executable(char *name, image_type type, const char *rpath);
|
||||||
status_t test_executable(const char *path, uid_t user, gid_t group, char *starter);
|
status_t test_executable(const char *path, uid_t user, gid_t group, char *starter);
|
||||||
@@ -44,4 +45,4 @@ void arch_call_term(image_t *image);
|
|||||||
extern struct uspace_program_args *gProgramArgs;
|
extern struct uspace_program_args *gProgramArgs;
|
||||||
extern struct rld_export gRuntimeLoader;
|
extern struct rld_export gRuntimeLoader;
|
||||||
|
|
||||||
#endif /* RUN_TIME_LINKER_H */
|
#endif /* RUNTIME_LOADER_H */
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de.
|
* Copyright 2005-2006, Axel Dörfler, axeld@pinc-software.de.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
* Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
||||||
@@ -7,13 +7,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "runtime_loader_private.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
|
||||||
#include "rld_priv.h"
|
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getenv(const char *name)
|
getenv(const char *name)
|
||||||
Reference in New Issue
Block a user