Better wrapper system, and fixed warnings

This commit is contained in:
Arthur Blot committed 2012-11-04 15:08:23 +01:00
1 parent a54dcbedc1
commit a00b1855cb
34 files changed
+708 -683

No files matched your search

-3
View File
@@ -154,7 +154,6 @@ bool ElfReader::LoadInto(u32 vaddr)
if (s->sh_type == SHT_PSPREL)
{
//We have a relocation table!
int symbolSection = s->sh_link;
int sectionToModify = s->sh_info;
if (!(sections[sectionToModify].sh_flags & SHF_ALLOC))
@@ -289,7 +288,6 @@ bool ElfReader::LoadInto(u32 vaddr)
else
{
//We have a relocation table!
int symbolSection = s->sh_link;
int sectionToModify = s->sh_info;
if (!(sections[sectionToModify].sh_flags & SHF_ALLOC))
{
@@ -341,7 +339,6 @@ bool ElfReader::LoadSymbols()
if (size == 0)
continue;
int bind = symtab[sym].st_info >> 4;
int type = symtab[sym].st_info & 0xF;
int sectionIndex = symtab[sym].st_shndx;
int value = symtab[sym].st_value;