[RTEMS Project] #2754: no .strtab section
RTEMS trac
trac at rtems.org
Mon Jul 11 00:11:57 UTC 2016
#2754: no .strtab section
----------------------+--------------------
Reporter: pggauvin | Owner: chrisj
Type: defect | Status: new
Priority: normal | Milestone:
Component: libdl | Version: 4.11
Severity: major | Keywords:
----------------------+--------------------
`dlopen` on the object generated by libfoo.cpp in the attached test case
fails and results in the error `no .strtab section`. readelf shows that
the section is present, though:
{{{
readelf -S libfoo.o | grep strtab
(standard input):97: [92] .shstrtab STRTAB 00000000
001fb0 00040c 00 0 0 1
(standard input):99: [94] .strtab STRTAB 00000000
0018b0 00019e 00 0 0 1
}}}
Steps to Reproduce (you may have to edit `BSP_DIR` in the Makefile):
{{{
make clean all
qemu-system-arm -m 256M -M xilinx-zynq-a9 -serial null -serial mon:stdio \
-nographic -no-reboot -kernel libdl-strtab-test.exe
}}}
Expected Output:
{{{
TEST BEGIN
dlopen: no .strtab section
assertion "handle != NULL" failed: file "libdl-strtab-test.c", line 46,
function: POSIX_Init
}}}
Development Environment:
- '''RTEMS Version''': 4.11 (Branch "4.11", commit
3f72dda6ee518d3ea04341ad4df079ecb1895ef7) with the dlerror patches from
#2747, and the attached ARM PREL31 support patch (I will be making a
separate ticket for this with test code soon).
- '''System Type''': ARM Cortex-A9, xilinx_zynq_a9_qemu BSP
- '''GCC Version''':
arm-rtems4.11-gcc (GCC) 4.9.3 20150626 (RTEMS 4.11, RSB
1675a733536d1aec2020011e5e522497a442561a (HEAD, origin/4.11, 4.11), Newlib
2.2.0.20150423)
- '''RTEMS Configure Options''':
--target=arm-rtems4.11 --enable-rtemsbsp="xilinx_zynq_a9_qemu
xilinx_zynq_zedboard xilinx_zynq_csp_cots xilinx_zynq_csp_hybrid"
--enable-tests=samples --enable-posix
--prefix=$HOME/development/rtems/4.11 --disable-networking
--
Ticket URL: <http://devel.rtems.org/ticket/2754>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list