With "readelf --dyn-syms" the syscall_entry symbol appears to have a zero
size. This causes our print_backtrace() code to not display the name
"syscall_entry" in the backtrace because no code appears to be inside this
symbol.

We probably need to do this for other assembly functions as well, but this
one bothered me.

Signed-off-by: Nadav Har'El <[email protected]>
---
 arch/x64/entry.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x64/entry.S b/arch/x64/entry.S
index 0526aa7..25f3cba 100644
--- a/arch/x64/entry.S
+++ b/arch/x64/entry.S
@@ -255,3 +255,4 @@ syscall_entry:
        # (sysret would leave rxc cloberred so we have nothing to do to restore 
it)
        jmpq *%rcx
        .cfi_endproc
+.size syscall_entry, .-syscall_entry
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to