|
Panu Matilainen |
9c33f4 |
diff -up rpm-4.4.2.2/tools/debugedit.c.gcc43 rpm-4.4.2.2/tools/debugedit.c
|
|
Panu Matilainen |
9c33f4 |
--- rpm-4.4.2.2/tools/debugedit.c.gcc43 2008-01-04 08:57:09.000000000 +0200
|
|
Panu Matilainen |
9c33f4 |
+++ rpm-4.4.2.2/tools/debugedit.c 2008-01-04 08:58:40.000000000 +0200
|
|
Panu Matilainen |
9c33f4 |
@@ -1353,12 +1353,6 @@ handle_build_id (DSO *dso, Elf_Data *bui
|
|
Panu Matilainen |
9c33f4 |
or Elf64 object, only that we are consistent in what bits feed the
|
|
Panu Matilainen |
9c33f4 |
hash so it comes out the same for the same file contents. */
|
|
Panu Matilainen |
9c33f4 |
{
|
|
Panu Matilainen |
9c33f4 |
- inline void process (const void *data, size_t size);
|
|
Panu Matilainen |
9c33f4 |
- inline void process (const void *data, size_t size)
|
|
Panu Matilainen |
9c33f4 |
- {
|
|
Panu Matilainen |
9c33f4 |
- rpmDigestUpdate(ctx, data, size);
|
|
Panu Matilainen |
9c33f4 |
- }
|
|
Panu Matilainen |
9c33f4 |
-
|
|
Panu Matilainen |
9c33f4 |
union
|
|
Panu Matilainen |
9c33f4 |
{
|
|
Panu Matilainen |
9c33f4 |
GElf_Ehdr ehdr;
|
|
Panu Matilainen |
9c33f4 |
@@ -1387,7 +1381,7 @@ handle_build_id (DSO *dso, Elf_Data *bui
|
|
Panu Matilainen |
9c33f4 |
goto bad;
|
|
Panu Matilainen |
9c33f4 |
if (elf64_xlatetom (&x, &x, dso->ehdr.e_ident[EI_DATA]) == NULL)
|
|
Panu Matilainen |
9c33f4 |
goto bad;
|
|
Panu Matilainen |
9c33f4 |
- process (x.d_buf, x.d_size);
|
|
Panu Matilainen |
9c33f4 |
+ rpmDigestUpdate(ctx, x.d_buf, x.d_size);
|
|
Panu Matilainen |
9c33f4 |
}
|
|
Panu Matilainen |
9c33f4 |
|
|
Panu Matilainen |
9c33f4 |
x.d_type = ELF_T_SHDR;
|
|
Panu Matilainen |
9c33f4 |
@@ -1399,14 +1393,14 @@ handle_build_id (DSO *dso, Elf_Data *bui
|
|
Panu Matilainen |
9c33f4 |
u.shdr.sh_offset = 0;
|
|
Panu Matilainen |
9c33f4 |
if (elf64_xlatetom (&x, &x, dso->ehdr.e_ident[EI_DATA]) == NULL)
|
|
Panu Matilainen |
9c33f4 |
goto bad;
|
|
Panu Matilainen |
9c33f4 |
- process (x.d_buf, x.d_size);
|
|
Panu Matilainen |
9c33f4 |
+ rpmDigestUpdate(ctx, x.d_buf, x.d_size);
|
|
Panu Matilainen |
9c33f4 |
|
|
Panu Matilainen |
9c33f4 |
if (u.shdr.sh_type != SHT_NOBITS)
|
|
Panu Matilainen |
9c33f4 |
{
|
|
Panu Matilainen |
9c33f4 |
Elf_Data *d = elf_rawdata (dso->scn[i], NULL);
|
|
Panu Matilainen |
9c33f4 |
if (d == NULL)
|
|
Panu Matilainen |
9c33f4 |
goto bad;
|
|
Panu Matilainen |
9c33f4 |
- process (d->d_buf, d->d_size);
|
|
Panu Matilainen |
9c33f4 |
+ rpmDigestUpdate(ctx, x.d_buf, x.d_size);
|
|
Panu Matilainen |
9c33f4 |
}
|
|
Panu Matilainen |
9c33f4 |
}
|
|
Panu Matilainen |
9c33f4 |
}
|