Changeset 8e3bc063 in mainline for uspace/lib/dltest/dltest.c


Ignore:
Timestamp:
2019-01-14T14:38:18Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c3c287
Parents:
e0e5e6f5
git-author:
Jiri Svoboda <jiri@…> (2018-01-13 18:38:00)
git-committer:
Jiri Svoboda <jiri@…> (2019-01-14 14:38:18)
Message:

dltest needs test that calls a function

During bringup of dynamic linking on a platform it is difficult to test
dynamic function calls (via PLT) if the binaries (including dltest)
are statically linked. We can do that by adding a function to libdltest
that calls another function. Since we don't use -Bsymbolic, the call
will be made via PLT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/dltest/dltest.c

    re0e5e6f5 r8e3bc063  
    6060{
    6161        return dl_constant;
     62}
     63
     64/** Return constant value by calling another function.
     65 *
     66 * This can be used to test dynamically linked call (via PLT) even in case
     67 * binaries are statically linked.
     68 */
     69int dl_get_constant_via_call(void)
     70{
     71        return dl_get_constant();
    6272}
    6373
Note: See TracChangeset for help on using the changeset viewer.