Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c5f125031f416ba6350e84462e9039737b6e2bab
Commit:     c5f125031f416ba6350e84462e9039737b6e2bab
Parent:     8678c1f04277daaa914abb107fb9fe71298d916d
Author:     Kevin Welton <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 22:05:25 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Tue May 8 22:05:25 2007 +0100

    [ARM] Fix ARM branch relocation range
    
    Branches in the ARM architecture are restricted to a range of +/- 32MB.
    However, the code in .../arch/arm/kernel/module.c::apply_relocate() was
    checking offset against a range of +/- 64MB.
    
    Signed-off-by: Kevin Welton <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/kernel/module.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c
index 1b06158..79b7e5c 100644
--- a/arch/arm/kernel/module.c
+++ b/arch/arm/kernel/module.c
@@ -116,8 +116,8 @@ apply_relocate(Elf32_Shdr *sechdrs, const char *strtab, 
unsigned int symindex,
 
                        offset += sym->st_value - loc;
                        if (offset & 3 ||
-                           offset <= (s32)0xfc000000 ||
-                           offset >= (s32)0x04000000) {
+                           offset <= (s32)0xfe000000 ||
+                           offset >= (s32)0x02000000) {
                                printk(KERN_ERR
                                       "%s: relocation out of range, section "
                                       "%d reloc %d sym '%s'\n", module->name,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to