summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libdl: Manually adding file headers and licensesRyan Long2022-04-276-0/+210
| | | | | | | These files had no file header, copyright, or license. Chris identified that these were made by him. Updates #4521
* cpukit/libdl: Manual file header reordering (SPDX, Doxygen, Copyright)Joel Sherrill2022-03-2235-300/+335
| | | | Updates #3053.
* cpukit/libdl Change license to BSD-2Joel Sherrill2022-03-2235-105/+770
| | | | Updates #3053.
* cpukit/libdl/rtl-alloc-check.py: Change to BSD-2 by handJoel Sherrill2022-03-221-7/+25
| | | | Updates #3053.
* libdl/rtl-mdreloc-h8300.c: Remove remnant of h8300 portJoel Sherrill2021-10-081-212/+0
| | | | Updates #2452.
* fastlz.c: Unused value (CID #1399751)Ryan Long2021-04-081-1/+9
| | | | | | CID 1399751: Unused value in fastlz2_compress(). Closes #4341
* Fix -Wchar-subscripts warningsAschref Ben Thabet2020-08-201-2/+2
| | | | | | | 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.
* libdl: Add allocator check scriptChris Johns2020-05-061-0/+96
| | | | Use with the trace outout to check for allocation leaks.
* libdl/rap: Correctly check the return enum from rela callsChris Johns2020-05-051-4/+13
| | | | | | | | - 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
* libdl/obj-comp: Add trace prints when decompressingChris Johns2020-05-051-0/+31
| | | | Updates #3969
* libdl/obj-cache: Fail if the read offset is past the file lengthChris Johns2020-05-051-4/+5
| | | | | | - The check was for greater than and not equal or greater Updates #3969
* libdl/obj: Fix RAP format call table.Chris Johns2020-05-051-1/+0
| | | | Updates #3969
* libdl/sparc: Print trace message of reloc failture pathChris Johns2020-05-051-1/+4
| | | | Updates #3969
* libdl: Fix comment.Chris Johns2020-05-051-1/+1
| | | | Updates #3969
* libdl/mips: Fix MIPS16hi/lo relocation support.Chris Johns2020-04-281-24/+45
| | | | | | | | This patch is an updated version from: https://lists.rtems.org/pipermail/users/2016-January/029740.html Closes #3693
* Canonicalize config.h includeSebastian Huber2020-04-1620-20/+20
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* riscv: preliminarily support for libdlHesham Almatary2019-11-122-1/+436
| | | | Support for targets compiled with -fno-pic and -mno-relax
* libdl/debugger: Fix the broken list delete when unloading an object module.Chris Johns2019-08-122-15/+13
| | | | Closes #3777
* libdl/arm: Add support for ARM trampolinesChris Johns2019-08-041-1/+18
| | | | Closes #3776
* libdl/arm: Fix ARM mode trampoline parsing of relocsChris Johns2019-07-281-16/+16
| | | | | | - No need to dump globals syms in test dl01 when tracing Closes #3775
* libdl/rap: fix RAP file load error.zhengxiaojun2019-06-121-2/+2
|
* libdl: Sort object file symbols and use a binary search to findChris Johns2019-05-222-9/+46
| | | | | | | - Replace the linear object file symbol search with a binary search. - Sort the object file symbols after loading. Closes #3748
* libdl: Fix size bug in loading symbols.Chris Johns2019-05-141-2/+2
| | | | | | This was introduced in 74883be5d4b5fa166179d6003032f6eac2e0f544. Updates #3746
* libdl: Fix loading symbol that reference unknown sections.Chris Johns2019-05-141-56/+159
| | | | | | | - Make the symbol parsing and loading stage match. - Check for possible overflow of the tables when loading. Closes #3746
* libdl: Do not access the ELF file while the allocator is locked.Chris Johns2019-05-0319-514/+1042
| | | | | | | | | | | | | - 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
* libdl: Add an archive commandChris Johns2019-03-223-171/+946
| | | | | | | - 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.
* libdl: Add small data support to the remaining PowerPC BSPs.Chris Johns2019-03-071-0/+15
| | | | Updates #3687
* libdl/unresolved: Fix return value for rtems_rtl_unresolved_removeChris Johns2019-02-201-2/+2
| | | | | | Coverity 1399717 Updates #3686
* libdl/archive: Check for an overflow of the symbol table.Chris Johns2019-02-201-3/+12
| | | | | | Coverty 1442636 Updates #3686
* libdl/archive: Fix the config file string index while removing tailing white ↵Chris Johns2019-02-201-2/+2
| | | | | | | | space. Coverity issue 1442540 Updates #3686
* libdl/archive: Return false on read failure.Chris Johns2019-02-201-0/+1
| | | | | | Coverity issue 1442641 Updates #3686
* libdl/alloc: Add a locking interface to the allocator.Chris Johns2019-02-203-5/+63
| | | | | | | | | | | | | - Allow an allocator to lock the allocations. This is needed to lock the heap allocator so the text and trampoline table are as close together as possible to allow for the largest possible object file size. - Update the default heap allocator to lock the heap allocator. - Update ELF loading to lock the allocator. Updates #3685
* libdl/rap: Add the section alloc call after section load was splitChris Johns2019-02-151-0/+6
| | | | Updates #3687
* libdl: Allocator does not unlock and lock memory on loading.Chris Johns2019-02-154-15/+90
| | | | Close #3692
* libdl: Add powerpc large memory and small data support.Chris Johns2019-02-0920-109/+1048
| | | | | | | | | | | | | | | | | - Add support for architecure sections that can be handled by the architecture back end. - Add trampoline/fixup support for PowerPC. This means the PowerPC now supports large memory loading of applications. - Add a bit allocator to manage small block based regions of memory. - Add small data (sdata/sbss) support for the PowerPC. The support makes the linker allocated small data region of memory a global resource available to libdl loaded object files. Updates #3687 Updates #3685
* libdl: Add support for large memory programsChris Johns2019-02-098-413/+609
| | | | | | | | | | | | | | | - Add trampolines to support relocs that are out of range on support architectures. - Support not loading separate text/data sections in an object file if the symbol provided in the section is a duplicate. A base image may have pulled in part of an object and another part needs to be dynamically loaded. - Refactor the unresolved handling to scale to hundreds of unresolved symbols when loading large number of files. Updates #3685
* libdl: Add support for trampolinesChris Johns2019-02-0914-125/+888
| | | | | | | | | | | | | - Trampolines or fixups for veneers provide long jump support for instruciton sets that implement short relative address branches. The linker provides trampolines when creating a static image. This patch adds trampoline support to libdl and the ARM architecture. - The dl09 test requires enough memory so modules are outside the relative branch instruction ranges for the architecture. Updates #3685
* libdl: Fix the support for constructors and desctructors.Chris Johns2019-02-094-39/+91
| | | | | | | - Fix the handling of pending objects. - Add a constructor flags in objects to track then being called. Closes #2921
* libdl: Add symbol searching and loading from archives.Chris Johns2019-02-0910-445/+1846
| | | | | | | | | | | | | | - Load archive symbol tables to support searching of archives for symbols. - Search archive symbols and load the object file that contains the symbol. - Search the global and archives until all remaining unresolved symbols are not found. Group the loaded object files in the pending queue. - Run the object file and loaded dependents as a group before adding to the main object list. - Remove orphaned object files after references are removed. Updates #3686
* libdl: Fix dlerror non-conformanceChris Johns2019-02-091-1/+4
| | | | Closes #3298
* Fix format warningsSebastian Huber2019-01-072-3/+4
|
* 5 spelling errors for a Google Code-In task.Jacob Shin2018-12-021-2/+2
| | | | Username: deuteriumoxide Email: jacobshin313@gmail.com
* libdl: Add object file dependencies to track referencesChris Johns2018-11-226-124/+491
| | | | | | | | | | Tracking references lets us manage when an object file can be unloaded. If an object file has references to it, it cannot be unloaded. Modules that depend on each other cannot be unloaded. Updates #3605
* libdl: Reindex unresolved names after removing used records.Chris Johns2018-11-221-20/+120
| | | | Updates #3194
* libdl: Manage the allocation of common uninitialised variables.Chris Johns2018-11-222-26/+187
| | | | | | | | | | | | | The use of separate text and data results in uninitialised variables being placed in the common section. There is no section in ELF for the common variables so the loader needs to create the section and allocate the variables in that section. This patch does that. The patch adds a second pass over the symbols. The issue can also be seen as a section 65522 error. Updates #3604
* build: Merge libdl/Makefile.amSebastian Huber2018-10-091-35/+0
|
* libdl: Avoid command line definesSebastian Huber2018-10-042-1/+3
| | | | Update #3375.
* libdl: Remove _t from all structures as this is reserved for the standardsChris Johns2018-04-1234-814/+813
|
* libdl: RAP format fixes.Chris Johns2018-04-121-8/+10
| | | | | | | | | | - Do not error if a RAP section is not found. - Free a symbol table via the RTL allocator interface. - Add the symbols to the global symbol table. Update #2769
* libdl: Fix potential overwrite of dest bufferSebastian Huber2018-02-072-2/+2
| | | | Update #2843.