[RTEMS Project] #3740: Libld does not load incrementially linked object file
RTEMS trac
trac at rtems.org
Fri Apr 26 21:10:02 UTC 2019
#3740: Libld does not load incrementially linked object file
-------------------------+--------------------------
Reporter: Chris Johns | Owner: Chris Johns
Type: defect | Status: assigned
Priority: normal | Milestone: 5.1
Component: lib/dl | Version: 5
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-------------------------+--------------------------
Comment (by Chris Johns):
I have updated `dl01` adding the example code and build PowerPC and ARM
bsps. The PowerPC BSP works while the ARM BSP does not work.
The results for the `psim` BSP is:
{{{
$ rtems-run --rtems-bsp=psim `find . -name dl01.exe`
RTEMS Testing - Run, 5.0.not_released
Command Line: /opt/work/rtems/5/bin/rtems-run --rtems-bsp=psim ./powerpc-
rtems5/c/psim/testsuites/libtests/dl01.exe
Python: 3.6.6 (default, Oct 2 2018, 01:22:29) [GCC 4.2.1 Compatible
FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]
Host: FreeBSD-12.0-RELEASE-p3-amd64-64bit-ELF (FreeBSD ruru
12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC amd64 amd64)
OpenPIC Version ? (1 CPUs and 1 IRQ sources) at 0x202571776
OpenPIC Vendor 0 (Unknown), Device 0 (Unknown), Stepping 0
Overriding NumSources (1) from configuration with 16
OpenPIC timer frequency is not set
BATs must not overlap; area 0x08000000..0x09000000 hits DBAT 0
BATs must not overlap; area 0x0c000000..0x0d000000 hits DBAT 0
*** BEGIN OF TEST libdl (RTL) 1 ***
*** TEST VERSION: 5.0.0.be50969881b97180bf4fc1e2975efd41169e08bb-modified
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_POSIX_API
*** TEST TOOLS: 7.4.0 20181206 (RTEMS 5, RSB
d9f49fc117422ea4b039cebc668191e9c07fde25, Newlib 1d35a003f)
load: /dl01-o1.o
handle: 0x6f668 loaded
Loaded module: argc:2
[/opt/work/chris/rtems/kernel/rtems.git/c/src/../../testsuites/libtests/dl01/dl-o1.c]
0: Line 1
1: Line 2
Loaded module: argc:3
[/opt/work/chris/rtems/kernel/rtems.git/c/src/../../testsuites/libtests/dl01/dl-o1.c]
0: Call 2, line 1
1: Call 2, line 2
2: Call 2, line 3
handle: 0x6f668 closed
load: /dl01-o2o3.o
handle: 0x6f668 loaded
FOO Foo 1
BAR Bar 1
handle: 0x6f668 closed
*** END OF TEST libdl (RTL) 1 ***
*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.0.0.be50969881b97180bf4fc1e2975efd41169e08bb-modified
RTEMS tools: 7.4.0 20181206 (RTEMS 5, RSB
d9f49fc117422ea4b039cebc668191e9c07fde25, Newlib 1d35a003f)
executing thread ID: 0x08a010001
executing thread name: UI1
Run time : 0:00:01.032580
}}}
The results for the `xilinx_zynq_a9_qemu` is:
{{{
$ rtems-run --rtems-bsp=xilinx_zynq_a9_qemu `find . -name dl01.exe`
RTEMS Testing - Run, 5.0.not_released
Command Line: /opt/work/rtems/5/bin/rtems-run --rtems-
bsp=xilinx_zynq_a9_qemu ./arm-
rtems5/c/xilinx_zynq_a9_qemu/testsuites/libtests/dl01.exe
Python: 3.6.6 (default, Oct 2 2018, 01:22:29) [GCC 4.2.1 Compatible
FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)]
Host: FreeBSD-12.0-RELEASE-p3-amd64-64bit-ELF (FreeBSD ruru
12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC amd64 amd64)
(process:90678): GLib-WARNING **: 07:02:48.995: gmem.c:490: custom memory
allocation vtable not supported
Warning: nic cadence_gem.0 has no peer
Warning: nic cadence_gem.1 has no peer
*** BEGIN OF TEST libdl (RTL) 1 ***
*** TEST VERSION: 5.0.0.be50969881b97180bf4fc1e2975efd41169e08bb-modified
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_POSIX_API
*** TEST TOOLS: 7.4.0 20181206 (RTEMS 5, RSB
d9f49fc117422ea4b039cebc668191e9c07fde25, Newlib 1d35a003f)
load: /dl01-o1.o
handle: 0x117c98 loaded
Loaded module: argc:2
[/opt/work/chris/rtems/kernel/rtems.git/c/src/../../testsuites/libtests/dl01/dl-o1.c]
0: Line 1
1: Line 2
Loaded module: argc:3
[/opt/work/chris/rtems/kernel/rtems.git/c/src/../../testsuites/libtests/dl01/dl-o1.c]
0: Call 2, line 1
1: Call 2, line 2
2: Call 2, line 3
handle: 0x117c98 closed
load: /dl01-o2o3.o
handle: 0x117c98 loaded
FOO Foo 1
FOO Foo 1
handle: 0x117c98 closed
*** END OF TEST libdl (RTL) 1 ***
*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.0.0.be50969881b97180bf4fc1e2975efd41169e08bb-modified
RTEMS tools: 7.4.0 20181206 (RTEMS 5, RSB
d9f49fc117422ea4b039cebc668191e9c07fde25, Newlib 1d35a003f)
executing thread ID: 0x08a010001
executing thread name: UI1
Run time : 0:00:01.018158
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/3740#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list