GOT patcher: fix libraries handling 14/85714/5
authorAlexander Aksenov <a.aksenov@samsung.com>
Fri, 26 Aug 2016 16:10:47 +0000 (19:10 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Wed, 26 Oct 2016 17:48:21 +0000 (20:48 +0300)
Previosly libraries were handled as applications and were added
to GOT patcher module as target binaries.

Change-Id: I33cd33088fbaf9fbcd6c537f5ffc1a2e69adddef
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
daemon/da_inst.c

index 94396dd..fc45e53 100644 (file)
@@ -867,28 +867,16 @@ static int write_bins_to_preload(struct user_space_inst_t *us_inst)
 
 static int add_bins_to_gtp(struct user_space_inst_t *us_inst)
 {
-       struct lib_list_t *lib = us_inst->lib_inst_list;
        struct app_list_t *app = us_inst->app_inst_list;
        uint32_t total_maps_count = 0;
        char real_path_buf[PATH_MAX];
-       char *resolved, *p;
+       char *resolved;
        FILE *gtp_p;
 
        gtp_p = fopen(GTP_ADD_BIN, "w");
        if (gtp_p == NULL)
                return -EINVAL;
 
-       while (lib != NULL) {
-               total_maps_count++;
-
-               p = lib->lib->bin_path;
-               fwrite(p, strlen(p) + 1, 1, gtp_p);
-               fflush(gtp_p);
-
-               LOGI("lib #%u <%s>\n", total_maps_count, lib->lib->bin_path);
-               lib = (struct lib_list_t *)lib->next;
-       }
-
        while (app != NULL) {
                resolved = realpath((const char *)app->app->exe_path, real_path_buf);
                if (resolved != NULL) {