Don't extract the n_type value from the elf header, since it is never used
Fix warning when compiling with gcc46: variable 'type' set but not used Approved by: cperciva MFC after: 3 days
This commit is contained in:
parent
f17a6f1b17
commit
097cd85002
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231815
@ -904,7 +904,6 @@ elf_print_note(Elf32_Ehdr *e, void *sh)
|
|||||||
u_int64_t name;
|
u_int64_t name;
|
||||||
u_int32_t namesz;
|
u_int32_t namesz;
|
||||||
u_int32_t descsz;
|
u_int32_t descsz;
|
||||||
u_int32_t type;
|
|
||||||
u_int32_t desc;
|
u_int32_t desc;
|
||||||
char *n, *s;
|
char *n, *s;
|
||||||
|
|
||||||
@ -916,7 +915,6 @@ elf_print_note(Elf32_Ehdr *e, void *sh)
|
|||||||
while (n < ((char *)e + offset + size)) {
|
while (n < ((char *)e + offset + size)) {
|
||||||
namesz = elf_get_word(e, n, N_NAMESZ);
|
namesz = elf_get_word(e, n, N_NAMESZ);
|
||||||
descsz = elf_get_word(e, n, N_DESCSZ);
|
descsz = elf_get_word(e, n, N_DESCSZ);
|
||||||
type = elf_get_word(e, n, N_TYPE);
|
|
||||||
s = n + sizeof(Elf_Note);
|
s = n + sizeof(Elf_Note);
|
||||||
desc = elf_get_word(e, n + sizeof(Elf_Note) + namesz, 0);
|
desc = elf_get_word(e, n + sizeof(Elf_Note) + namesz, 0);
|
||||||
fprintf(out, "\t%s %d\n", s, desc);
|
fprintf(out, "\t%s %d\n", s, desc);
|
||||||
|
Loading…
Reference in New Issue
Block a user