support elfloader for shared object and relocatable object
1. elfloader for shared object example: TencentOS-tiny\examples\elfloader_shared_object keil: TencentOS-tiny\board\TencentOS_tiny_EVB_MX_Plus\KEIL\elfloader_shared_object 2. elfloader for relocatable object: example: TencentOS-tiny\examples\elfloader_relocatable_object keil: TencentOS-tiny\board\TencentOS_tiny_EVB_MX_Plus\KEIL\elfloader_relocatable_object 3. TODO: - add icache/dcache flush when module is loaded - support more relocation type in elfloader_arch_relocate
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
/*----------------------------------------------------------------------------
|
||||
* Tencent is pleased to support the open source community by making TencentOS
|
||||
* available.
|
||||
*
|
||||
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
|
||||
* If you have downloaded a copy of the TencentOS binary from Tencent, please
|
||||
* note that the TencentOS binary is licensed under the BSD 3-Clause License.
|
||||
*
|
||||
* If you have downloaded a copy of the TencentOS source code from Tencent,
|
||||
* please note that TencentOS source code is licensed under the BSD 3-Clause
|
||||
* License, except for the third-party components listed below which are
|
||||
* subject to different license terms. Your integration of TencentOS into your
|
||||
* own projects may require compliance with the BSD 3-Clause License, as well
|
||||
* as the other licenses applicable to the third-party components included
|
||||
* within TencentOS.
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _TOS_VFS_FILE_H_
|
||||
#define _TOS_VFS_FILE_H_
|
||||
|
||||
@@ -10,13 +27,13 @@ typedef struct vfs_inode_st vfs_inode_t;
|
||||
#define VFS_PATH_MAX 31
|
||||
|
||||
// open flags(vfs_oflag_t): open method flags (3rd argument of tos_vfs_open)
|
||||
#define VFS_OFLAG_READ 0x01
|
||||
#define VFS_OFLAG_WRITE 0x02
|
||||
#define VFS_OFLAG_EXISTING 0x00
|
||||
#define VFS_OFLAG_CREATE_NEW 0x04
|
||||
#define VFS_OFLAG_CREATE_ALWAYS 0x08
|
||||
#define VFS_OFLAG_OPEN_ALWAYS 0x10
|
||||
#define VFS_OFLAG_OPEN_APPEND 0x30
|
||||
#define VFS_OFLAG_READ 0x01
|
||||
#define VFS_OFLAG_WRITE 0x02
|
||||
#define VFS_OFLAG_EXISTING 0x00
|
||||
#define VFS_OFLAG_CREATE_NEW 0x04
|
||||
#define VFS_OFLAG_CREATE_ALWAYS 0x08
|
||||
#define VFS_OFLAG_OPEN_ALWAYS 0x10
|
||||
#define VFS_OFLAG_OPEN_APPEND 0x30
|
||||
|
||||
typedef enum vfs_whence_en {
|
||||
VFS_SEEK_SET, /* the offset is set to offset bytes */
|
||||
|
Reference in New Issue
Block a user