Changeset a949f4a in mainline for uspace/lib/c/generic/dlfcn.c


Ignore:
Timestamp:
2019-07-16T15:07:01Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2cc569a3, 9fb280c
Parents:
fa603e99
git-author:
Jiri Svoboda <jiri@…> (2019-07-15 17:03:31)
git-committer:
Jiri Svoboda <jiri@…> (2019-07-16 15:07:01)
Message:

Dynamic linking on IA-64 (WIP)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/dlfcn.c

    rfa603e99 ra949f4a  
    4545#include <rtld/module.h>
    4646#include <rtld/rtld.h>
     47#include <rtld/rtld_arch.h>
    4748#include <rtld/symbol.h>
    4849
     
    7980        sd = symbol_bfs_find(sym_name, (module_t *) mod, &sm);
    8081        if (sd != NULL) {
    81                 return symbol_get_addr(sd, sm, __tcb_get());
     82                if (elf_st_type(sd->st_info) == STT_FUNC)
     83                        return func_get_addr(sd, sm);
     84                else
     85                        return symbol_get_addr(sd, sm, __tcb_get());
    8286        }
    8387
Note: See TracChangeset for help on using the changeset viewer.