mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-22 20:17:35 +08:00
ecf2d82159
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <zhangbingru@rt-thread.com> Co-authored-by: zhkag <zhkag@foxmail.com>
42 lines
875 B
C
42 lines
875 B
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2021-07-28 JasonHu first version
|
|
*/
|
|
|
|
#include <rtthread.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <elf.h>
|
|
#ifdef RT_USING_USERSPACE
|
|
#include <mmu.h>
|
|
#include <page.h>
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
Elf32_Word st_name;
|
|
Elf32_Addr st_value;
|
|
Elf32_Word st_size;
|
|
unsigned char st_info;
|
|
unsigned char st_other;
|
|
Elf32_Half st_shndx;
|
|
} Elf32_sym;
|
|
|
|
#ifdef RT_USING_USERSPACE
|
|
void arch_elf_reloc(rt_mmu_info *m_info, void *text_start, void *rel_dyn_start, size_t rel_dyn_size, void *got_start, size_t got_size, Elf32_sym *dynsym)
|
|
{
|
|
|
|
}
|
|
#else
|
|
|
|
void arch_elf_reloc(void *text_start, void *rel_dyn_start, size_t rel_dyn_size, void *got_start, size_t got_size, Elf32_sym *dynsym)
|
|
{
|
|
|
|
}
|
|
#endif
|