diff options
| author | Neel Natu <neel@FreeBSD.org> | 2010-08-10 05:15:35 +0000 |
|---|---|---|
| committer | Neel Natu <neel@FreeBSD.org> | 2010-08-10 05:15:35 +0000 |
| commit | 8508c6bd409db19d333dd0b5a8a346d91111fe35 (patch) | |
| tree | b4eb13e9c851cb37ab2b5ec0a3ea1dec5934f52c /libexec/rtld-elf | |
| parent | af7326d40558467afc649f51942997c1ea6d113e (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-elf')
| -rw-r--r-- | libexec/rtld-elf/mips/reloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/mips/reloc.c b/libexec/rtld-elf/mips/reloc.c index fa0534d2180ba..15a0e3735613c 100644 --- a/libexec/rtld-elf/mips/reloc.c +++ b/libexec/rtld-elf/mips/reloc.c @@ -75,7 +75,7 @@ void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr); * ELF64 MIPS encodes the relocs uniquely. The first 32-bits of info contain * the symbol index. The top 32-bits contain three relocation types encoded * in big-endian integer with first relocation in LSB. This means for little - * endian we have to byte swap that interger (r_type). + * endian we have to byte swap that integer (r_type). */ #define Elf_Sxword Elf64_Sxword #define ELF_R_NXTTYPE_64_P(r_type) ((((r_type) >> 8) & 0xff) == R_TYPE(64)) @@ -83,7 +83,7 @@ void _rtld_relocate_nonplt_self(Elf_Dyn *, Elf_Addr); #undef ELF_R_SYM #undef ELF_R_TYPE #define ELF_R_SYM(r_info) ((r_info) & 0xffffffff) -#define ELF_R_TYPE(r_info) bswap32((r_info) >> 32) +#define ELF_R_TYPE(r_info) bswap32(((r_info) >> 32)) #endif #else #define ELF_R_NXTTYPE_64_P(r_type) (0) |
