aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2004-02-21 18:25:59 +0000
committerAndreas Jaeger <aj@suse.de>2004-02-21 18:25:59 +0000
commit14755b91e9318bf1bd37e9f42149458b23a3d696 (patch)
tree8874e8fc6c28f0623f48431ede7e29849022b04c /elf
parentcd5b5023342e2efbbe7819cbf15814defa965ba0 (diff)
downloadglibc-14755b91e9318bf1bd37e9f42149458b23a3d696.zip
glibc-14755b91e9318bf1bd37e9f42149458b23a3d696.tar.gz
glibc-14755b91e9318bf1bd37e9f42149458b23a3d696.tar.bz2
* elf/dl-load.c (_dl_map_object_from_fd): Fix casts used as lvalue.
* iconv/gconv_simple.c (internal_ucs4le_loop): Remove cast used as lvalue.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 8b9e508..cba75f6 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1228,7 +1228,7 @@ cannot allocate TLS data structures for initial thread");
}
else
/* Adjust the PT_PHDR value by the runtime load address. */
- (ElfW(Addr)) l->l_phdr += l->l_addr;
+ l->l_phdr = (ElfW(Phdr) *) ((ElfW(Addr)) l->l_phdr + l->l_addr);
}
#ifdef USE_TLS
@@ -1254,7 +1254,7 @@ cannot allocate TLS data structures for initial thread");
}
}
else
- (ElfW(Addr)) l->l_ld += l->l_addr;
+ l->l_ld = (ElfW(Dyn) *) ((ElfW(Addr)) l->l_ld + l->l_addr);
l->l_entry += l->l_addr;