[RTEMS Project] #3604: RTL Unresolved Symbols from common section on i386/pc686 (cloned)

RTEMS trac trac at rtems.org
Tue Nov 13 06:13:24 UTC 2018


#3604: RTL Unresolved Symbols from common section on i386/pc686 (cloned)
----------------------------+--------------------
  Reporter:  Joseph Hickey  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  normal         |  Milestone:  5.1
 Component:  lib/dl         |    Version:  5
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------
 Cloned from #3527:
 ----
 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/3604>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list