Merge branches 'common/pfc' and 'common/clkfwk' into rmobile/marzen
[cascardo/linux.git] / arch / powerpc / relocs_check.pl
index d257109..7f5b838 100755 (executable)
@@ -32,8 +32,18 @@ while (<FD>) {
        next if (!/\s+R_/);
 
        # These relocations are okay
-       next if (/R_PPC64_RELATIVE/ or /R_PPC64_NONE/ or
-                /R_PPC64_ADDR64\s+mach_/);
+       # On PPC64:
+       #       R_PPC64_RELATIVE, R_PPC64_NONE, R_PPC64_ADDR64
+       # On PPC:
+       #       R_PPC_RELATIVE, R_PPC_ADDR16_HI, 
+       #       R_PPC_ADDR16_HA,R_PPC_ADDR16_LO,
+       #       R_PPC_NONE
+
+       next if (/\bR_PPC64_RELATIVE\b/ or /\bR_PPC64_NONE\b/ or
+                /\bR_PPC64_ADDR64\s+mach_/);
+       next if (/\bR_PPC_ADDR16_LO\b/ or /\bR_PPC_ADDR16_HI\b/ or
+                /\bR_PPC_ADDR16_HA\b/ or /\bR_PPC_RELATIVE\b/ or
+                /\bR_PPC_NONE\b/);
 
        # If we see this type of relcoation it's an idication that
        # we /may/ be using an old version of binutils.