[PATCH 0/5] Add libdl support to MicroBlaze

2023-08-27 Thread Alex White
Hi, This patch set adds libdl support to MicroBlaze. All tests pass except for dl05 and dl06. To get dl07, dl08, and dl09 to pass, I removed the use of floating point numbers from those tests. Alex Alex White (5): microblaze: Add libdl support testsuites/libtests: Remove floats from libdl te

[PATCH 3/5] microblaze: Align exception-related sections

2023-08-27 Thread Alex White
This fixes unaligned data access exceptions found while debugging test dl05. --- spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/linkcmds.yml b/spec/build/bsps/microblaze

[PATCH 4/5] microblaze: Add dl06 to expected failures

2023-08-27 Thread Alex White
Updates #4948 --- spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml b/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml index 665d4d0d54..7f

[PATCH 1/5] microblaze: Add libdl support

2023-08-27 Thread Alex White
--- cpukit/libdl/rtl-mdreloc-microblaze.c | 291 ++ cpukit/libdl/rtl-tls.c| 2 +- .../microblaze/include/machine/elf_machdep.h | 83 + spec/build/cpukit/cpumicroblaze.yml | 3 + spec/build/cpukit/objdl.yml | 2

[PATCH 5/5] microblaze: Add dl05 to expected failures

2023-08-27 Thread Alex White
Updates #4949 --- .../bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml b/spec/build/bsps/microblaze/microblaze_fpga/tstkcu105_qemu.yml index 7ff9350cf4..7ae7005bf0 100644

[PATCH 2/5] testsuites/libtests: Remove floats from libdl tests

2023-08-27 Thread Alex White
This patch addresses an issue seen with MicroBlaze in the dl07, dl08, and dl09 tests by removing the use of floats. The issue relates to the fact that the MicroBlaze BSPs use software floating point routines. Any float passed to `printf` is converted to a double automatically because of default arg

Re: [PATCH 2/5] testsuites/libtests: Remove floats from libdl tests

2023-08-27 Thread Chris Johns
On 28/8/2023 11:30 am, Alex White wrote: > This patch addresses an issue seen with MicroBlaze in the dl07, dl08, > and dl09 tests by removing the use of floats. The issue relates to the > fact that the MicroBlaze BSPs use software floating point routines. Any > float passed to `printf` is converted

Re: [PATCH 1/5] microblaze: Add libdl support

2023-08-27 Thread Chris Johns
On 28/8/2023 11:30 am, Alex White wrote: > --- > cpukit/libdl/rtl-mdreloc-microblaze.c | 291 ++ > cpukit/libdl/rtl-tls.c| 2 +- > .../microblaze/include/machine/elf_machdep.h | 83 + > spec/build/cpukit/cpumicroblaze.yml | 3 + >

[PATCH 1/2] cpukit/libdl: Correctly account for section alignments

2023-08-27 Thread chrisj
From: Chris 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 ---

[PATCH 2/2] cpukit/libdl: Fix incorrect operator precedence access the name

2023-08-27 Thread chrisj
From: Chris Johns Coverity Issue: CID 1442635 Out-of-bounds access --- cpukit/libdl/rtl-archive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpukit/libdl/rtl-archive.c b/cpukit/libdl/rtl-archive.c index f916336f7c..4a6d2cbf0b 100644 --- a/cpukit/libdl/rtl-archive.c +++

Re: [PATCH 2/5] testsuites/libtests: Remove floats from libdl tests

2023-08-27 Thread Alex White
On Sun, Aug 27, 2023 at 8:38 PM Chris Johns wrote: > The floats need to stay to make sure there are no issues with this type. I see > the tests with floats as valid. > > Is the only missing function `__extendsfdf2`? Yes, that is the only missing function. If I change the floats to doubles, the ne

Re: [PATCH 2/5] testsuites/libtests: Remove floats from libdl tests

2023-08-27 Thread Chris Johns
On 28/8/2023 2:12 pm, Alex White wrote: > On Sun, Aug 27, 2023 at 8:38 PM Chris Johns wrote: >> The floats need to stay to make sure there are no issues with this type. I >> see >> the tests with floats as valid. >> >> Is the only missing function `__extendsfdf2`? > > Yes, that is the only missi

[rtems-tools PATCH] rtemstoolkit: Fix shell execution

2023-08-27 Thread chrisj
From: Chris Johns The fixes to parse the command along with the pipe options broke a simple shell command such as '/sbin/sysctl hw.ncpu' on FreeBSD. This patch fixes the shell command by passing a string for the various options. The unit test has been updated to catch errors and report them. ---