PERFORCE change 104297 for review
John Birrell
jb at FreeBSD.org
Wed Aug 16 21:04:40 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104297
Change 104297 by jb at jb_freebsd2 on 2006/08/16 21:03:59
Remove code that got implemented in a different way.
Sigh.
Affected files ...
.. //depot/projects/dtrace/src/lib/libelf/elf_memory.c#4 edit
Differences ...
==== //depot/projects/dtrace/src/lib/libelf/elf_memory.c#4 (text+ko) ====
@@ -38,7 +38,6 @@
elf_memory(char *image, size_t sz)
{
Elf *e;
- Elf_Data dst, src;
if (LIBELF_PRIVATE(version) == EV_NONE) {
LIBELF_SET_ERROR(SEQUENCE, 0);
@@ -80,35 +79,6 @@
else
e->e_kind = ELF_K_NONE;
- if (e->e_kind == ELF_K_ELF) {
- src.d_buf = image;
- src.d_off = 0;
- src.d_align = 0;
- src.d_type = ELF_T_EHDR;
- src.d_version = EV_CURRENT;
-
- dst.d_off = 0;
- dst.d_align = 0;
- dst.d_type = ELF_T_EHDR;
- dst.d_version = EV_CURRENT;
-
- if (e->e_class == ELFCLASS32) {
- dst.d_buf = &e->e_eh32;
- dst.d_size = sizeof(e->e_eh32);
- src.d_size = sizeof(e->e_eh32);
- } else if (e->e_class == ELFCLASS64) {
- dst.d_buf = &e->e_eh64;
- dst.d_size = sizeof(e->e_eh64);
- src.d_size = sizeof(e->e_eh64);
- } else {
- LIBELF_SET_ERROR(CLASS, e->e_class);
- return (NULL);
- }
-
- if (gelf_xlatetom(e, &dst, &src, e->e_byteorder) == NULL)
- return (NULL);
- }
-
return (e);
}
More information about the p4-projects
mailing list