Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15130
b: refs/heads/master
c: c2e2611
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Jacobowitz authored and Russell King committed Dec 14, 2005
1 parent a16afca commit e195730
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ee9530a71686436dbeb5f31dd5b925c39cf71d7
refs/heads/master: c2e2611425a956d25d2948c5d95d3848c4db1257
2 changes: 2 additions & 0 deletions trunk/arch/arm/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, unsigned int symindex,
break;

case R_ARM_PC24:
case R_ARM_CALL:
case R_ARM_JUMP24:
offset = (*(u32 *)loc & 0x00ffffff) << 2;
if (offset & 0x02000000)
offset -= 0x04000000;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-arm/elf.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ typedef unsigned long elf_freg_t[3];
#define R_ARM_NONE 0
#define R_ARM_PC24 1
#define R_ARM_ABS32 2
#define R_ARM_CALL 28
#define R_ARM_JUMP24 29

#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
Expand Down

0 comments on commit e195730

Please sign in to comment.