To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit ce779815 authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

Fixed name handling bugs on aarch64

parent 352a83d7
......@@ -1961,7 +1961,7 @@ impl CodeGenerator for ASMCodeGen {
let func_end_sym = mangle_name(func_end.clone());
self.add_asm_symbolic(directive_globl(func_end_sym.clone()));
self.add_asm_symbolic(format!("{}:", func_end_sym.clone()));
self.add_asm_symbolic(format!(".size {}, {}-{}", func_symbol.clone(), func_end.clone(), func_symbol.clone()));
self.add_asm_symbolic(format!(".size {}, {}-{}", func_symbol.clone(), func_end_sym.clone(), func_symbol.clone()));
self.cur.as_mut().unwrap().control_flow_analysis();
......
......@@ -3690,10 +3690,12 @@ impl <'a> InstructionSelection {
self.backend.emit_ldr_callee_saved(reg, &loc);
}
// frame shrink
self.backend.emit_frame_shrink();
//self.backend.emit_frame_shrink();
// Pop the link register and frame pointers
// Pop the frame record
self.backend.emit_mov(&SP, &FP);
self.backend.emit_pop_pair(&FP, &LR, &SP);
// Note: the stack pointer should now be what it was when the function was called
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment