nuttx/libs/libc
Ville Juven e384a6a625 libs/modlib.c: Set VMA for empty and unallocated sections
This fixes issue where empty and unallocated sections are left without
a VMA. Some relocations depend on the section VMA being set even if there
is no data there, as the binary can refer to the symbols. Linker defined
symbols do not contain data -> they can produce empty sections.

This issue is seen when building a loadable file which declares _sctors /
_sdtors linker defined symbols for ctor/dtor sections which are empty.
crt0 references these symbols, so they need to be relocated, but the
section VMA is not set -> they go outside of the addressable range of the
user binary causing a potential crash.
2024-10-17 13:38:01 +08:00
..
aio libs/libc: There is no need to use sched_[un]lock 2024-10-12 13:28:23 +08:00
assert libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
audio libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
bin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
builtin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
ctype Fix ctypes.h locale macro 2024-10-08 08:13:42 +08:00
dirent cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
dlfcn nuttx/libc:Add _dl_find_object and dl_iterate_phdr function. 2024-10-15 12:35:54 +08:00
errno libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
eventfd libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
fdt libs/libc/fdt/Make.defs: cannot move due to directory not empty bugfix 2024-10-09 15:42:17 +08:00
fixedmath libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
gdbstub cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
gnssutils libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
grp libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
hex2bin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
inttypes libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
kbin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libgen libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
locale cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
lzf libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
machine setjmp: fix setjmp returns 0 when calling longjmp with 0 as the second argument 2024-10-15 12:36:19 +08:00
misc circbuf: fix circbuf_get_read/writeptr return *size = 0 when circbuf full 2024-10-16 16:59:51 +08:00
modlib libs/modlib.c: Set VMA for empty and unallocated sections 2024-10-17 13:38:01 +08:00
net cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
netdb cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
obstack cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
pthread cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
pwd libs/libc/unistd: add getspnam function 2024-10-16 11:15:25 +08:00
queue libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
regex libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
search libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
semaphore nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall 2024-10-12 09:50:54 +08:00
signal cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
spawn cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
stdio libs: remove lib_libbsprintf automatic line wrapping 2024-10-16 17:26:14 +08:00
stdlib libc: Make getcwd() work even CONFIG_DISABLE_ENVIRON is enabled 2024-10-16 23:59:07 +08:00
stream lib_stdoutstream:need return write size 2024-10-15 23:30:57 +08:00
string libc/memmem:porting open source memmem to Nuttx. 2024-10-16 18:41:50 +08:00
symtab lib_libvsprintf.c:add option in Kconfig to control "%p*" special format specifier. 2024-10-15 15:33:13 +08:00
syslog syslog: support syslog redirection to sched_note 2024-10-11 01:30:11 +08:00
termios libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
time strptime.c:len is not defined. 2024-10-16 17:02:51 +08:00
tls libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
uio libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
unistd libc: Make getcwd() work even CONFIG_DISABLE_ENVIRON is enabled 2024-10-16 23:59:07 +08:00
userfs libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
uuid lib_uuid_create: try use hardware random number generators first 2024-10-13 02:44:25 +08:00
wchar libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
wctype libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
wqueue cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
zoneinfo libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
.gitignore libfdt: modify makefile 2023-08-26 17:07:02 +08:00
CMakeLists.txt libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
libc.csv libs/libc/unistd: add crypt function 2024-10-16 11:15:25 +08:00
libc.h libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Makefile libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00