summaryrefslogtreecommitdiff
path: root/cpukit/libdl (follow)
AgeCommit message (Collapse)Author
2023-09-26cpukit/aarch64: Resolve warnings with ILP32 ABIKinsey Moore
Casts from uint64_t to void* must go through a uintptr_t cast to avoid warnings when building with the ILP32 ABI since this is otherwise an implicit truncation to 32bits for a pointer.
2023-09-15libdl: Use _CPU_Get_TLS_thread_pointer()Sebastian Huber
Update #4920.
2023-09-12microblaze: Fix relocation targetsAlex White
Previously the addend was only used in 64 bit relocations. This behavior was incorrect but did not cause the RTEMS libdl tests to fail.
2023-08-30microblaze: Add libdl supportAlex White
2023-08-28cpukit/libdl: Fix incorrect operator precedence access the nameChris Johns
Coverity Issue: CID 1442635 Out-of-bounds access
2023-08-28cpukit/libdl: Correctly account for section alignmentsChris Johns
- Add the section alignment to the size as the allocator may not provide correctly aligned memory - Only include symbols in the section when locating symbols. The powerpc was incorrectly adding SDATA BSS symbols to the BSS offset overrunning the section Closes #4950
2023-08-27libdl: Realloc text memory if there are trampolinesChris Johns
- Add resize to the allocator interface - Rework the trampoline variables in the obj struct to make better sense of what is happening Closes #4944
2023-08-21libdl: Add support to import base image TLS symbolsChris Johns
This change requires an rtems-tools update for symbol generation. Working architectures: - aarch64 - arm - powerpc - sparc No newlib TLS support but checked: - i386 - m69k Updates #4920
2023-08-12cpukit/libdl: AARCH64 unwind uses DWARF 2 tablesChris Johns
Closes #4943
2023-05-22libdl: Add support for LDST128_ABS_LO12_NCKinsey Moore
2023-04-05cpukit/libdl: Resolve size mismatch warningsKinsey Moore
Resolve warnings about mismatched pointer and integer sizes in AArch64 libdl when building with the ILP32 ABI.
2023-01-20cpukit/libdl: Add AArch64 TLS reloc supportKinsey Moore
This adds basic TLS relocation support for AArch64 to libdl. This lets loadable modules use TLS symbols hosted in the main binary. This does not allow loadable modules to host their own TLS symbols.
2023-01-20cpukit/libdl: Print the missing AArch64 reloc typeKinsey Moore
This prints the relocation type that was found to be missing in addition to its address to aid in bug reports.
2023-01-20cpukit/libdl: Use correct mask for reloc typeKinsey Moore
The mask 0xff is used by ELF32 while ELF64 uses 0xffffffff. These are automatically selected based on the build type when using ELF_R_TYPE().
2022-08-08libdl: Refactor shared code in ARM and AArch64Ryan Long
rtl-mdreloc-arm.c was used as the basis for rtl-mdreloc-aarch64.c. This lead to some code being shared by the two files. The code was consolidated into rtl-unwind-arm.c. Closes #4686
2022-08-05libdl: Fix warnings on 64bit architecturesChris Johns
Updates #4662
2022-07-29cpukit/libdl/rtl-sym.c: Fix increment of variableRyan Long
In rtems_rtl_symbol_global_add() the loop that gets to the end of the symbol table used "unsigned long" to increment the index for the table. For most architectures this resulted in 4, but with AArch64, it results in 8. This resulted in the symbols being read in wrong. Changing this to void* along with changing the RISC-V specific code for 8 byte pointers in rtems-tools to work independent of the architecture. Updates #4673 Closes #4682
2022-07-29cpukit/libdl: Add support for AArch64Ryan Long
rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. Updates #4682
2022-07-29libdl/rtl-elf.h: Fix aarch64 defineRyan Long
The aarch64 define was incorrect. This was causing the libdl tests to not work correctly. Updates #4682
2022-04-27libdl: Manually adding file headers and licensesRyan Long
These files had no file header, copyright, or license. Chris identified that these were made by him. Updates #4521
2022-03-22cpukit/libdl: Manual file header reordering (SPDX, Doxygen, Copyright)Joel Sherrill
Updates #3053.
2022-03-22cpukit/libdl Change license to BSD-2Joel Sherrill
Updates #3053.
2022-03-22cpukit/libdl/rtl-alloc-check.py: Change to BSD-2 by handJoel Sherrill
Updates #3053.
2021-10-08libdl/rtl-mdreloc-h8300.c: Remove remnant of h8300 portJoel Sherrill
Updates #2452.
2021-04-08fastlz.c: Unused value (CID #1399751)Ryan Long
CID 1399751: Unused value in fastlz2_compress(). Closes #4341
2020-08-20Fix -Wchar-subscripts warningsAschref Ben Thabet
The argument to the ctype functions must be an int and the value of the character must be representable as an unsigned char or equal to the value of the macro EOF. If the argument has any other value, the behavior is undefined.
2020-05-06libdl: Add allocator check scriptChris Johns
Use with the trace outout to check for allocation leaks.
2020-05-05libdl/rap: Correctly check the return enum from rela callsChris Johns
- The change from bool to an enum did not trip a compiler warning and only the rel path was changed. The rela path was missed so archs like SPARC failed. Updates #3969
2020-05-05libdl/obj-comp: Add trace prints when decompressingChris Johns
Updates #3969
2020-05-05libdl/obj-cache: Fail if the read offset is past the file lengthChris Johns
- The check was for greater than and not equal or greater Updates #3969
2020-05-05libdl/obj: Fix RAP format call table.Chris Johns
Updates #3969
2020-05-05libdl/sparc: Print trace message of reloc failture pathChris Johns
Updates #3969
2020-05-05libdl: Fix comment.Chris Johns
Updates #3969
2020-04-28libdl/mips: Fix MIPS16hi/lo relocation support.Chris Johns
This patch is an updated version from: https://lists.rtems.org/pipermail/users/2016-January/029740.html Closes #3693
2020-04-16Canonicalize config.h includeSebastian Huber
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2019-11-12riscv: preliminarily support for libdlHesham Almatary
Support for targets compiled with -fno-pic and -mno-relax
2019-08-12libdl/debugger: Fix the broken list delete when unloading an object module.Chris Johns
Closes #3777
2019-08-04libdl/arm: Add support for ARM trampolinesChris Johns
Closes #3776
2019-07-28libdl/arm: Fix ARM mode trampoline parsing of relocsChris Johns
- No need to dump globals syms in test dl01 when tracing Closes #3775
2019-06-12libdl/rap: fix RAP file load error.zhengxiaojun
2019-05-22libdl: Sort object file symbols and use a binary search to findChris Johns
- Replace the linear object file symbol search with a binary search. - Sort the object file symbols after loading. Closes #3748
2019-05-14libdl: Fix size bug in loading symbols.Chris Johns
This was introduced in 74883be5d4b5fa166179d6003032f6eac2e0f544. Updates #3746
2019-05-14libdl: Fix loading symbol that reference unknown sections.Chris Johns
- Make the symbol parsing and loading stage match. - Check for possible overflow of the tables when loading. Closes #3746
2019-05-03libdl: Do not access the ELF file while the allocator is locked.Chris Johns
- Load symbols before allocation. - Parse reloc records and place any reloc recs in a cache to use while the allocator is locked. - Relocate symbols after section allocation. - Split section loading into allocation/locating and loading. - Update all arch back-ends with a new reloc interface to control tramp handling. - Add `-a` and `-t` to the object list shell command. Closes #3741
2019-03-22libdl: Add an archive commandChris Johns
- The archive command lists archives, symbols and any duplicate symbols. - Change the RTL shell commands to the rtems_printer to allow the output to be captured.
2019-03-07libdl: Add small data support to the remaining PowerPC BSPs.Chris Johns
Updates #3687
2019-02-20libdl/unresolved: Fix return value for rtems_rtl_unresolved_removeChris Johns
Coverity 1399717 Updates #3686
2019-02-20libdl/archive: Check for an overflow of the symbol table.Chris Johns
Coverty 1442636 Updates #3686
2019-02-20libdl/archive: Fix the config file string index while removing tailing white ↵Chris Johns
space. Coverity issue 1442540 Updates #3686
2019-02-20libdl/archive: Return false on read failure.Chris Johns
Coverity issue 1442641 Updates #3686