Changeset 7fb3f1c in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2011-04-30T20:22:35Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b72635
Parents:
2ca5f632
Message:

Make all architectures buildable. Only allow enabling dynamic linking on ia32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r2ca5f632 r7fb3f1c  
    6565
    6666/* From librtld */
     67#ifdef CONFIG_RTLD
    6768#include <rtld.h>
    6869#include <dynamic.h>
     
    7071#include <module.h>
    7172
     73static int ldr_load_dyn_linked(elf_info_t *p_info);
     74#endif
     75
    7276#define DPRINTF(...)
    73 
    74 static int ldr_load_dyn_linked(elf_info_t *p_info);
    7577
    7678/** Pathname of the file that will be loaded */
     
    102104static bool connected = false;
    103105
     106#ifdef CONFIG_RTLD
    104107/** State structure of the dynamic linker. */
    105108runtime_env_t dload_re;
    106109static module_t prog_mod;
     110#endif
    107111
    108112static void ldr_get_taskid(ipc_callid_t rid, ipc_call_t *request)
     
    317321       
    318322        DPRINTF("Binary is dynamically linked.\n");
     323#ifdef CONFIG_RTLD
    319324        DPRINTF(" - pcb address: %p\n", &pcb);
    320325        DPRINTF( "- prog dynamic: %p\n", prog_info.dynamic);
    321326
    322327        rc = ldr_load_dyn_linked(&prog_info);
    323 
     328#else
     329        rc = ENOTSUP;
     330#endif
    324331        async_answer_0(rid, rc);
    325332        return 0;
    326333}
     334
     335#ifdef CONFIG_RTLD
    327336
    328337static int ldr_load_dyn_linked(elf_info_t *p_info)
     
    372381        return 0;
    373382}
     383#endif
    374384
    375385/** Run the previously loaded program.
Note: See TracChangeset for help on using the changeset viewer.