65749575ab
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
22 lines
607 B
Diff
22 lines
607 B
Diff
Ensure that ELFv2 ABI is used on all ppc64, including big endian.
|
|
|
|
--- a/powerpc64/machine.m4
|
|
+++ b/powerpc64/machine.m4
|
|
@@ -1,7 +1,7 @@
|
|
define(`PROLOGUE',
|
|
`.globl C_NAME($1)
|
|
DECLARE_FUNC(C_NAME($1))
|
|
-ifelse(WORDS_BIGENDIAN,no,
|
|
+ifelse(`no',`no',
|
|
`ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
|
|
C_NAME($1):
|
|
addis 2,12,(.TOC.-C_NAME($1))@ha
|
|
@@ -17,7 +17,7 @@ ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
|
|
undefine(`FUNC_ALIGN')')
|
|
|
|
define(`EPILOGUE',
|
|
-`ifelse(WORDS_BIGENDIAN,no,
|
|
+`ifelse(`no',`no',
|
|
`.size C_NAME($1), . - C_NAME($1)',
|
|
`.size .C_NAME($1), . - .C_NAME($1)
|
|
.size C_NAME($1), . - .C_NAME($1)')')
|