[RTEMS Project] #3740: Libld does not load incrementially linked object file

RTEMS trac trac at rtems.org
Sun Sep 29 08:19:52 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 jameszxj):

 I complite test case use the follow command

 {{{
 arm-rtems5-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
 -mtune=cortex-a9 -mlong-calls -Wall -I. -O2 -c -o wsp/build/dl-o2.o
 src/dl-o2.c
 arm-rtems5-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
 -mtune=cortex-a9 -mlong-calls -Wall -I. -O2 -c -o wsp/build/dl-o1.o
 src/dl-o1.c
 arm-rtems5-ld -r -o wsp/build/dl.out wsp/build/dl-o2.o wsp/build/dl-o1.o

 }}}

 output message:

 {{{
 handle: 0x2207620 loaded
 dl_o1_func
 dl_o1_func
 handle: 0x2207620 closed
 }}}

 The right output should be:

 {{{
 handle: 0x2207620 loaded
 dl_o1_func
 dl_o2_func
 handle: 0x2207620 closed
 }}}

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


More information about the bugs mailing list