Home > other >  Dynamic library A.s o load dynamic library B.s o, dlopen anomalies
Dynamic library A.s o load dynamic library B.s o, dlopen anomalies

Time:09-16

Networks to solve the great god, be obliged!
VxWorks under a RTP, need to load dynamic libraries A.s o, and A.s o need to load B.s o, sometimes appear: after hardware reset function In _rtld_dlopen -- RTLD. C: 672 * old_obj_tail==obj - an assertion failed, and sometimes can be loaded correctly, to restart a few times more will appear before or copy to compile the same RTP tffs0 In probability is bigger,

Among them:
RTP would configuration has increased - rpath/tffs0;
Handle=dlopen ("/tffs0/lib/A.s o ", RTLD_NOW);

A.s o and B.s o would configuration are increased - WL, - Xshared - WL, - XPIC - WL, - XDynamic; These two. So are placed in the/tffs0/lib, and libc. So. 1 under the/tffs0,
Handle in the A.s o=dlopen ("/tffs0/lib/B.s o ", RTLD_NOW);

CodePudding user response:

Today test in RTP, empty load directly, without references to handle (handle=dlopen ("/tffs0/lib/B.s o ", RTLD_NOW);) , A.s o or executive handle the same original position=dlopen ("/tffs0/lib/B.s o ", RTLD_NOW); This hardware is no longer an exception, infer from this: RTP can load A.s o and B.s o, if the B.s o in RTP, loaded in advance, can load B.s A.s o o; If not loaded in advance, the load is unusual, can't is A.s o link B.s o success?
  • Related