aboutsummaryrefslogtreecommitdiff
path: root/security/nettle/files/extra-patch-powerpc64_machine.m4
blob: e0bcdbd34fd2f23b50012be1f368b160afe047f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- powerpc64/machine.m4.old	2021-04-18 10:51:29.072176000 -0500
+++ powerpc64/machine.m4	2021-04-18 11:45:30.583315000 -0500
@@ -1,26 +1,15 @@
 define(`PROLOGUE',
 `.globl C_NAME($1)
 DECLARE_FUNC(C_NAME($1))
-ifelse(WORDS_BIGENDIAN,no,
-`ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
+ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
 C_NAME($1):
 addis 2,12,(.TOC.-C_NAME($1))@ha
 addi 2,2,(.TOC.-C_NAME($1))@l
-.localentry C_NAME($1), .-C_NAME($1)',
-`.section ".opd","aw"
-.align 3
-C_NAME($1):
-.quad .C_NAME($1),.TOC.@tocbase,0
-.previous
-ifdef(`FUNC_ALIGN',`.align FUNC_ALIGN')
-.C_NAME($1):')
+.localentry C_NAME($1), .-C_NAME($1)
 undefine(`FUNC_ALIGN')')
 
 define(`EPILOGUE',
-`ifelse(WORDS_BIGENDIAN,no,
-`.size C_NAME($1), . - C_NAME($1)',
-`.size .C_NAME($1), . - .C_NAME($1)
-.size C_NAME($1), . - .C_NAME($1)')')
+`.size C_NAME($1), . - C_NAME($1)')
 
 C Get vector-scalar register from vector register
 C VSR(VR)