From 615e516585c248a874afa8c68f465b11eec6e5e0 Mon Sep 17 00:00:00 2001 From: jD91mZM2 <me@krake.one> Date: Thu, 16 Jul 2020 17:13:30 +0200 Subject: [PATCH] Add extra assembler metadata --- src/arch/x86_64/interrupt/handler.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/arch/x86_64/interrupt/handler.rs b/src/arch/x86_64/interrupt/handler.rs index 3ff1ed6..06d060b 100644 --- a/src/arch/x86_64/interrupt/handler.rs +++ b/src/arch/x86_64/interrupt/handler.rs @@ -211,8 +211,12 @@ macro_rules! function { ($name:ident => { $($body:expr,)+ }) => { intel_asm!( ".global ", stringify!($name), "\n", + ".type ", stringify!($name), ", @function\n", + ".section .text.", stringify!($name), ", \"ax\", @progbits\n", stringify!($name), ":\n", - $($body,)+ + $($body),+, + ".size ", stringify!($name), ", . - ", stringify!($name), "\n", + ".text\n", ); extern "C" { pub fn $name(); -- GitLab