[RTEMS Project] #3527: RTL Unresolved Symbols from common section on i386/pc686
RTEMS trac
trac at rtems.org
Tue Sep 25 13:24:00 UTC 2018
#3527: RTL Unresolved Symbols from common section on i386/pc686
----------------------------+--------------------
Reporter: Joseph Hickey | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone:
Component: lib/dl | Version: 4.11
Severity: normal | Keywords:
Blocked By: | Blocking:
----------------------------+--------------------
By default GCC puts uninitialized global variables into a common section
in the ELF file. When attempting to load the resulting ELF file at
runtime using `dlopen()`, these global symbols are not resolved as
expected.
The RTL reports unresolved symbols, and runtime code that take the address
of the global get `NULL` instead.
This is reproducible using the libtests/dl01 example by adding a global
variable to the module code. I will attach a patch that replicates the
issue.
Test platform is QEMU using pc686 BSP, RTEMS source version 4.11.3 (latest
on 4.11 git branch as of this writing)
--
Ticket URL: <http://devel.rtems.org/ticket/3527>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list