@@ -204,33 +204,20 @@ def emit_aarch64_trampoline(self, hole: Hole, alignment: int) -> None:
204204            return 
205205
206206        self .disassembly  +=  [
207-             f"{ base  +  4  *  0 :x}  ,
208-             f"{ base  +  4  *  0 :016x} { hole .symbol }  ,
209-             f"{ base  +  4  *  1 :x}  ,
210-             f"{ base  +  4  *  1 :016x} { hole .symbol }  ,
211-             f"{ base  +  4  *  2 :x}  ,
212-             f"{ base  +  4  *  2 :016x} { hole .symbol }  ,
213-             f"{ base  +  4  *  3 :x}  ,
214-             f"{ base  +  4  *  3 :016x} { hole .symbol }  ,
215-             f"{ base  +  4  *  4 :x}  ,
207+             f"{ base  +  4  *  0 :x}  ,
208+             f"{ base  +  4  *  1 :x}  ,
209+             f"{ base  +  4  *  2 :x}  ,
210+             f"{ base  +  4  *  2 :016x} { hole .symbol }  ,
211+             f"{ base  +  4  *  3 :x}  ,
216212        ]
217213        for  code  in  [
218-             0xD2800008 .to_bytes (4 , sys .byteorder ),
219-             0xF2A00008 .to_bytes (4 , sys .byteorder ),
220-             0xF2C00008 .to_bytes (4 , sys .byteorder ),
221-             0xF2E00008 .to_bytes (4 , sys .byteorder ),
214+             0x58000048 .to_bytes (4 , sys .byteorder ),
222215            0xD61F0100 .to_bytes (4 , sys .byteorder ),
216+             0x00000000 .to_bytes (4 , sys .byteorder ),
217+             0x00000000 .to_bytes (4 , sys .byteorder ),
223218        ]:
224219            self .body .extend (code )
225-         for  i , kind  in  enumerate (
226-             [
227-                 "R_AARCH64_MOVW_UABS_G0_NC" ,
228-                 "R_AARCH64_MOVW_UABS_G1_NC" ,
229-                 "R_AARCH64_MOVW_UABS_G2_NC" ,
230-                 "R_AARCH64_MOVW_UABS_G3" ,
231-             ]
232-         ):
233-             self .holes .append (hole .replace (offset = base  +  4  *  i , kind = kind ))
220+         self .holes .append (hole .replace (offset = base  +  8 , kind = "R_AARCH64_ABS64" ))
234221        self .trampolines [hole .symbol ] =  base 
235222
236223    def  remove_jump (self , * , alignment : int  =  1 ) ->  None :
0 commit comments