[RTEMS Project] #2704: Weak symbols not found by loaded code

RTEMS trac trac at rtems.org
Sun Jun 26 17:55:52 UTC 2016


#2704: Weak symbols not found by loaded code
--------------------------------+---------------------
 Reporter:  pggauvin            |       Owner:  chrisj
     Type:  defect              |      Status:  new
 Priority:  normal              |   Milestone:
Component:  libdl               |     Version:  4.11
 Severity:  normal              |  Resolution:
 Keywords:  libdl, weak symbol  |
--------------------------------+---------------------

Comment (by pggauvin):

 I've attached a patch for rtems-syms in rtems-tools that includes any
 defined weak symbols in the base image into the symbol table it generates.
 This allows loaded code to find the symbols, but it is not a complete
 solution, since now a defined weak symbol in loaded code will cause a
 failed load if it is defined in the base image weakly, since the loader
 now believes it is a strong symbol. For what it's worth, the x86_64 loader
 on Linux seems to use the base's symbol in situations where the symbol is
 defined in both the base and loaded code (regardless of whether they are
 weak or strong).

--
Ticket URL: <http://devel.rtems.org/ticket/2704#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list