aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-09-08 21:31:59 +0000
committerUlrich Drepper <drepper@redhat.com>2001-09-08 21:31:59 +0000
commit455e8060b03bc12a2b3a25c9be92b5e420d806fd (patch)
tree859bf6f03c6b15c3f7cd049ef1126edccece25b3
parent1181062126ed5daf104aa9f7beb847055c1d4adc (diff)
downloadglibc-455e8060b03bc12a2b3a25c9be92b5e420d806fd.zip
glibc-455e8060b03bc12a2b3a25c9be92b5e420d806fd.tar.gz
glibc-455e8060b03bc12a2b3a25c9be92b5e420d806fd.tar.bz2
Update.
2001-09-08 Ben Collins <bcollins@debian.org> * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in usage of RESOLVE() (r_type, not reloc->r_type).
-rw-r--r--ChangeLog5
-rw-r--r--elf/dl-object.c2
-rw-r--r--sysdeps/arm/dl-machine.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2eadb41..52bdb75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-08 Ben Collins <bcollins@debian.org>
+
+ * sysdeps/arm/dl-machine.h (elf_machine_rel): Fix thinko in
+ usage of RESOLVE() (r_type, not reloc->r_type).
+
2001-09-08 Ulrich Drepper <drepper@redhat.com>
* elf/dl-object.c: Avoid allocating extra memory block for name.
diff --git a/elf/dl-object.c b/elf/dl-object.c
index bfd4f2d..9406ea1 100644
--- a/elf/dl-object.c
+++ b/elf/dl-object.c
@@ -47,7 +47,7 @@ _dl_new_object (char *realname, const char *libname, int type,
newname = (struct libname_list *) (new + 1);
newname->name = (char *) memcpy (newname + 1, libname, libname_len);
- newname->next = NULL;
+ /* newname->next = NULL; We use calloc therefore not necessary. */
newname->dont_free = 1;
new->l_name = realname;
diff --git a/sysdeps/arm/dl-machine.h b/sysdeps/arm/dl-machine.h
index 6abac52..2d802b7 100644
--- a/sysdeps/arm/dl-machine.h
+++ b/sysdeps/arm/dl-machine.h
@@ -428,7 +428,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
else
{
const Elf32_Sym *const refsym = sym;
- Elf32_Addr value = RESOLVE (&sym, version, reloc->r_type);
+ Elf32_Addr value = RESOLVE (&sym, version, r_type);
if (sym)
value += sym->st_value;