Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=08269c6d38e003adb12f55c6d795daa89bdc1bae
Commit:     08269c6d38e003adb12f55c6d795daa89bdc1bae
Parent:     94a05509a9e11806acd797153d03019706e466f1
Author:     Andi Kleen <[EMAIL PROTECTED]>
AuthorDate: Mon Apr 16 10:30:27 2007 +0200
Committer:  Andi Kleen <[EMAIL PROTECTED]>
CommitDate: Mon Apr 16 10:30:27 2007 +0200

    [PATCH] x86: Fix gcc 4.2 _proxy_pda workaround
    
    Due to an over aggressive optimizer gcc 4.2 cannot optimize away _proxy_pda
    in all cases (counter intuitive, but true).  This breaks loading of some
    modules.
    
    The earlier workaround to just export a dummy symbol didn't work 
unfortunately
    because the module code ignores exports with 0 value.
    
    Make it 1 instead.
    
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
---
 arch/i386/kernel/vmlinux.lds.S   |    2 +-
 arch/x86_64/kernel/vmlinux.lds.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/i386/kernel/vmlinux.lds.S b/arch/i386/kernel/vmlinux.lds.S
index ca51610..6f38f81 100644
--- a/arch/i386/kernel/vmlinux.lds.S
+++ b/arch/i386/kernel/vmlinux.lds.S
@@ -26,7 +26,7 @@ OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
 OUTPUT_ARCH(i386)
 ENTRY(phys_startup_32)
 jiffies = jiffies_64;
-_proxy_pda = 0;
+_proxy_pda = 1;
 
 PHDRS {
        text PT_LOAD FLAGS(5);  /* R_E */
diff --git a/arch/x86_64/kernel/vmlinux.lds.S b/arch/x86_64/kernel/vmlinux.lds.S
index b73212c..5176ecf 100644
--- a/arch/x86_64/kernel/vmlinux.lds.S
+++ b/arch/x86_64/kernel/vmlinux.lds.S
@@ -13,7 +13,7 @@ OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(phys_startup_64)
 jiffies_64 = jiffies;
-_proxy_pda = 0;
+_proxy_pda = 1;
 PHDRS {
        text PT_LOAD FLAGS(5);  /* R_E */
        data PT_LOAD FLAGS(7);  /* RWE */
-
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