Replaced addr with addr_t.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9431 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7605ddddf0
commit
4d41be9656
@ -11,10 +11,10 @@ relocate_rel(image_t *image, struct Elf32_Rel *rel, int rel_len)
|
|||||||
int i;
|
int i;
|
||||||
struct Elf32_Sym *sym;
|
struct Elf32_Sym *sym;
|
||||||
int vlErr;
|
int vlErr;
|
||||||
addr S;
|
addr_t S;
|
||||||
addr final_val;
|
addr_t final_val;
|
||||||
|
|
||||||
# define P ((addr *)(image->regions[0].delta + rel[i].r_offset))
|
# define P ((addr_t *)(image->regions[0].delta + rel[i].r_offset))
|
||||||
# define A (*(P))
|
# define A (*(P))
|
||||||
# define B (image->regions[0].delta)
|
# define B (image->regions[0].delta)
|
||||||
|
|
||||||
@ -42,14 +42,14 @@ relocate_rel(image_t *image, struct Elf32_Rel *rel, int rel_len)
|
|||||||
final_val = S + A;
|
final_val = S + A;
|
||||||
break;
|
break;
|
||||||
case R_386_PC32:
|
case R_386_PC32:
|
||||||
final_val = S + A - (addr)P;
|
final_val = S + A - (addr_t)P;
|
||||||
break;
|
break;
|
||||||
#if 0
|
#if 0
|
||||||
case R_386_GOT32:
|
case R_386_GOT32:
|
||||||
final_val = G + A;
|
final_val = G + A;
|
||||||
break;
|
break;
|
||||||
case R_386_PLT32:
|
case R_386_PLT32:
|
||||||
final_val = L + A - (addr)P;
|
final_val = L + A - (addr_t)P;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case R_386_COPY:
|
case R_386_COPY:
|
||||||
|
Loading…
Reference in New Issue
Block a user