2021-04-18 18:10:59 +02:00
|
|
|
Ensure that ELFv2 ABI is used on all ppc64, including big endian.
|
|
|
|
|
srcpkgs/n*: convert patches to -Np1
```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
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/powerpc64/machine.m4
|
|
|
|
+++ b/powerpc64/machine.m4
|
2021-04-18 18:10:59 +02:00
|
|
|
@@ -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)')')
|