Commit 0f533160c7f7ccd1ae421d5bce3850a1a5400bc1
1 parent
e163bca7
removed unused code
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@220 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
0 additions
and
8 deletions
linux-user/elfload.c
| @@ -17,13 +17,6 @@ | @@ -17,13 +17,6 @@ | ||
| 17 | 17 | ||
| 18 | #define ELF_START_MMAP 0x80000000 | 18 | #define ELF_START_MMAP 0x80000000 |
| 19 | 19 | ||
| 20 | -typedef uint32_t elf_greg_t; | ||
| 21 | - | ||
| 22 | -#define ELF_NGREG (sizeof (struct target_pt_regs) / sizeof(elf_greg_t)) | ||
| 23 | -typedef elf_greg_t elf_gregset_t[ELF_NGREG]; | ||
| 24 | - | ||
| 25 | -typedef struct user_i387_struct elf_fpregset_t; | ||
| 26 | - | ||
| 27 | /* | 20 | /* |
| 28 | * This is used to ensure we don't load something for the wrong architecture. | 21 | * This is used to ensure we don't load something for the wrong architecture. |
| 29 | */ | 22 | */ |
| @@ -758,7 +751,6 @@ static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * r | @@ -758,7 +751,6 @@ static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * r | ||
| 758 | } | 751 | } |
| 759 | 752 | ||
| 760 | /* Now read in all of the header information */ | 753 | /* Now read in all of the header information */ |
| 761 | - | ||
| 762 | elf_phdata = (struct elf_phdr *)malloc(elf_ex.e_phentsize*elf_ex.e_phnum); | 754 | elf_phdata = (struct elf_phdr *)malloc(elf_ex.e_phentsize*elf_ex.e_phnum); |
| 763 | if (elf_phdata == NULL) { | 755 | if (elf_phdata == NULL) { |
| 764 | return -ENOMEM; | 756 | return -ENOMEM; |