Alin Jerpelea
e8606942eb
libs: libc: nxstyle fixes
...
nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-22 19:28:38 -07:00
Alin Jerpelea
8dd660ecd4
nuttx: Author David S. Alessio: update licenses to Apache
...
David S. Alessio has submitted the ICL and we can migrate the licenses
to Apache.
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-22 19:28:38 -07:00
Abdelatif Guettouche
d85c432278
Few typos fixes in binfmt and libc/machine.
...
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-03-11 10:35:40 +08:00
Gustavo Henrique Nihei
330eff36d7
sourcefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
Alin Jerpelea
d6b50a1d3f
libs: nxstyle fixes
...
nxstyle fixes to pass the CI checks
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-03 18:52:53 -08:00
Alin Jerpelea
b5d4a01821
libs: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-03-03 18:52:53 -08:00
hotislandn
0337cd05d7
libc:machine:risc-v:unifying elf relocation code.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-19 11:09:18 -08:00
hotislandn
d9a1b67120
libs:machine:rv64:add missing logic for elf relocation type: R_RISCV_LO12_S.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-15 06:57:30 -08:00
hotislandn
256b83ef8a
arch:risc-v:bl602:add support for elf file apps.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-13 10:29:12 -08:00
hotislandn
07792a696b
RV64: handle relocation type R_RISCV_CALL_PLT in PIC build.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-03 02:27:03 -08:00
hotislandn
de8e3a130c
RV64: add R_RISCV_HI20 and R_RISCV_LO12_I to elf relocateadd for absolute address loading.
...
Signed-off-by: hotislandn <hotislandn@hotmail.com>
2021-02-01 21:35:48 -08:00
chao.an
bd3a843ffe
libc/machine/arch: fix build break if enable armv8 ELF
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-16 11:17:02 -08:00
YAMAMOTO Takashi
f0fc385232
libs/libc/machine/risc-v/rv64/arch_elf.c: Don't assume binfo expansion
2020-12-06 09:03:09 -06:00
YAMAMOTO Takashi
c7a2ee11ca
libs/libc/machine/arm/armv6-m/arch_elf.c: Appease nxstyle
...
The following errors are intentionally left.
They are a part of tables which are not trivial to fix.
libs/libc/machine/arm/armv6-m/arch_elf.c:228:94: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:230:89: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:238:94: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:240:89: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:401:94: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:403:91: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:411:94: error: Long line found
libs/libc/machine/arm/armv6-m/arch_elf.c:413:91: error: Long line found
2020-12-06 09:03:09 -06:00
YAMAMOTO Takashi
0117d2b2f6
libs/libc/machine/arm/armv7-a/arch_elf.c: Fix syslog formats
2020-12-06 07:41:37 -06:00
YAMAMOTO Takashi
51b6a3cd1a
libs/libc/machine/arm/armv7-a/arch_elf.c: Appease nxstyle
2020-12-06 07:41:37 -06:00
Xiang Xiao
d6c24312aa
Fix nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
afb0e33138
libc/machine/arch: Support armv8-m relocation
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
74ab69af62
libs/libc/machine/arm: Rename armv8 to armv8-m
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
edca49fb5f
libc/machine/arm: Use the correct arch Kconfig for variant check
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
Xiang Xiao
baabe5e08a
libs/libc/machine: Remove ARCH_CORTEXM33 dependence from LIBM_ARCH_xxx
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-11-26 18:42:18 -03:00
YAMAMOTO Takashi
c1f9d8adb1
libs/libc/machine/risc-v/rv64/arch_elf.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
42a218dabb
libs/libc/machine/arm/armv7-m/arch_elf.c: Fix syslog formats
2020-11-21 19:38:32 -08:00
YAMAMOTO Takashi
04f2542cc2
libs/libc/machine/arm/armv7-m/arch_elf.c: Appease nxstyle
...
The following errors are intentionally left.
They are a part of tables which are not trivial to fix.
libs/libc/machine/arm/armv7-m/arch_elf.c:230:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:232:89: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:240:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:242:89: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:403:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:405:91: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:413:94: error: Long line found
libs/libc/machine/arm/armv7-m/arch_elf.c:415:91: error: Long line found
2020-11-21 19:38:32 -08:00
chao.an
7356b5a2ed
libc: Implement strlcpy function
...
Reference:
http://www.delorie.com/djgpp/doc/libc/libc_763.html
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-08-14 03:44:26 -07:00
Xiang Xiao
aa0d57e8ad
libc: Move unwind code to libs/libc/machine/arm
...
because the logic:
1.only work on arm platform
2.couple with elf format
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I25dc95b5fc7b24196e2e71fdcf82d71d621ee2d3
2020-07-11 10:34:22 -07:00
ligd
0fe2884713
libs/libc/machine/risc-v: add rv32 support
...
Change-Id: I96a02aacea4e1d034f986f2937fe496da1f486ba
Signed-off-by: ligd <liguiding@fishsemi.com>
2020-06-30 09:31:21 -03:00
Masayuki Ishikawa
edd3dd3168
libs: rv64: Fix _calc_imm() in arch_elf.c
2020-06-25 02:21:23 -05:00
Xiang Xiao
b932b653dd
arch: Select 64bit elf base on the architecture characteristic
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I09eec5a76f255016a910cfec3b3f70cd7577525e
2020-05-31 21:38:32 -07:00
Xiang Xiao
7faf3c0254
build: replace ${TOPDIR} with $(TOPDIR) in Makefile
...
make the usage consistence
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 19:23:18 +01:00
YAMAMOTO Takashi
c62f806581
sim: modlib: Implement some x86_64 relocations
...
The boilerplate part of the code was copied from:
libs/libc/machine/risc-v/rv64/arch_elf.c
2020-03-27 00:04:36 -05:00
YAMAMOTO Takashi
df44909b30
xtensa/arch_elf.c: Ignore R_XTENSA_NONE
...
Now examples/sotest passes on qemu.
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
e135c938d2
xtensa: Implement a few relocations
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
2776a5bbea
Replace a few Gregory Nutt's copyright notices with Apache 2.0
...
The text was copied from sched/sched/sched_getcpu.c.
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
b2627225bd
Update file paths of copy-and-paste'ed files
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
c7526e551e
arch_elf.c: Appease nxstyle errors
2020-03-16 07:54:49 -06:00
YAMAMOTO Takashi
5e1b24f012
xtensa: Add modlib boilerplate
...
This is a modified copy of armv6-m/armv7-m version.
2020-03-16 07:54:49 -06:00
Masayuki Ishikawa
c365e0a88f
libs: risc-v: Fix typo in comment
2020-03-06 09:41:34 +01:00
YAMAMOTO Takashi
3df686e10f
sim: berr() unknown relocation type
2020-02-14 14:40:15 +08:00
Masayuki Ishikawa
81f1133174
ELF64 support ( #220 )
...
* include: Introduce elf64.h and elf.h
Added elf64.h for 64bit ELF support and moved common definitions
from elf32.h to elf.h. Also introduced Elf_xxx to be used in
common libraries such as binfmt.
* binfmt, include, modlib, module: Add support for ELF64
Elf_xxx must be used instead of Elf32_xxx to support ELF64.
To use ELF64, CONFIG_ELF_64BIT must be enabled.
* binfmt, modlib: Add support for relocate address
* arch: risc-v: Add include/elf.h
* libs: machine: Add risc-v related files.
NOTE: Currently only supports ELF64
* boards: maix-bit: Add elf and posix_spawn configurations
* boards: maix-bit: Add support for module configuration
2020-02-07 17:10:23 -06:00
Xiang Xiao
68951e8d72
Remove exra whitespace from files ( #189 )
...
* Remove multiple newlines at the end of files
* Remove the whitespace from the end of lines
2020-01-31 09:24:49 -06:00
Nathan Hartman
3aac01e843
libs/libc/machine/arm/armv7-m/arch_sqrtf.c: Fix a copy-paste typo in a #error message.
2019-09-22 16:14:30 -06:00
Masayuki Ishikawa
5bf674a99f
Merged in masayuki2009/nuttx.nuttx/fix_build_error_for_elf (pull request #959 )
...
libs/libc/machine/arm/armv7-m: Fix build error for elf
Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com>
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-07-30 13:08:59 +00:00
David S. Alessio
f2b96016ad
libs/libc/machine/arm/armv7-m: Add Cortex M4F mach optimized fabsf and sqrtf.
2019-07-29 20:27:33 -06:00
zhangyuan7
471a18ee4d
arch/arm: Add the initial cortex-a7 archtiecture support
2019-03-19 11:51:29 -06:00
Xiang Xiao
2f208fdde8
arch/Kconfig: Move FPU options to a common place and unify the usage by removing ARCH_CORTEXRxF.
2019-03-19 10:26:15 -06:00
Xiang Xiao
8812a3315d
libs/libc/machine/arm: Fix the minor issue in libc arm machine folder; MOVW/MOVT should use zero(not sign) extension.
2019-01-26 11:59:27 -06:00
anchao
98add65c14
libs/libc/machine/arm/armv7-m/arch_elf.c: Add support for the R_ARM_THM_JUMP11 relocation type. This relocation type may be generated when LTO optimization is enabled.
2019-01-26 11:52:57 -06:00
Xiang Xiao
38ffb98f1b
Kconfig files, binfmt/libelf, libs/libc/machin, libs/libxx: Correct libcxx exception handling by introducing the generic config(CXX_EXCEPTION and CXX_LIBSUPCXX)
2019-01-26 11:23:31 -06:00
Xiang Xiao
095e28d45e
binfmt/, binfmt/libelf/, include/nuttx, libs/libc/machine, libs/libc/modlib, and others: Move elf related arch function to include/nuttx/elf.h because the implementation is located in libs/libc/machine and in order to avoid the conflict with the 3rd party libraries and clean up the file inclusion: (1) Remove redundant elf32.h, (2) Remove nuttx/binfmt/elf.h in libs/libc/machine, (2) Remove nuttx/binfmt/elf.h in modlib, and (4) Rmove nuttx/module.h in modlib.
2019-01-26 11:18:45 -06:00