From: Tom Hughes Date: Mon, 1 May 2006 09:28:39 +0000 (+0000) Subject: Add .type and .size directives for VG_(run_innerloop) and X-Git-Tag: svn/VALGRIND_3_2_0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f7215ba463efebe8ad3eb243344613c8372265;p=thirdparty%2Fvalgrind.git Add .type and .size directives for VG_(run_innerloop) and VG_(run_a_noredir_translation) on all platforms where they are missing. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5873 --- diff --git a/coregrind/m_dispatch/dispatch-amd64-linux.S b/coregrind/m_dispatch/dispatch-amd64-linux.S index 64a35000aa..f9d0757ad6 100644 --- a/coregrind/m_dispatch/dispatch-amd64-linux.S +++ b/coregrind/m_dispatch/dispatch-amd64-linux.S @@ -52,6 +52,7 @@ UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); .text .globl VG_(run_innerloop) +.type VG_(run_innerloop), @function VG_(run_innerloop): /* %rdi holds guest_state */ /* %rsi holds do_profiling */ @@ -273,6 +274,7 @@ run_innerloop_exit_REALLY: popq %rcx popq %rbx ret +.size VG_(run_innerloop), .-VG_(run_innerloop) /*------------------------------------------------------------*/ @@ -295,6 +297,7 @@ void VG_(run_a_noredir_translation) ( UWord* argblock ); */ .align 16 .global VG_(run_a_noredir_translation) +.type VG_(run_a_noredir_translation), @function VG_(run_a_noredir_translation): /* Save callee-saves regs */ pushq %rbx @@ -324,6 +327,7 @@ VG_(run_a_noredir_translation__return_point): popq %rbp popq %rbx ret +.size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) /* Let the linker know we don't need an executable stack */ .section .note.GNU-stack,"",@progbits diff --git a/coregrind/m_dispatch/dispatch-ppc32-linux.S b/coregrind/m_dispatch/dispatch-ppc32-linux.S index c4379bbc3c..4752498c68 100644 --- a/coregrind/m_dispatch/dispatch-ppc32-linux.S +++ b/coregrind/m_dispatch/dispatch-ppc32-linux.S @@ -50,6 +50,7 @@ UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); */ .text .globl VG_(run_innerloop) +.type VG_(run_innerloop), @function VG_(run_innerloop): /* r3 holds guest_state */ /* r4 holds do_profiling */ @@ -538,6 +539,7 @@ LafterVMX9: mtlr 0 addi 1,1,496 /* stack_size */ blr +.size VG_(run_innerloop), .-VG_(run_innerloop) /*------------------------------------------------------------*/ @@ -559,6 +561,7 @@ void VG_(run_a_noredir_translation) ( UWord* argblock ); 3: output: guest state pointer afterwards (== thread return code) */ .global VG_(run_a_noredir_translation) +.type VG_(run_a_noredir_translation), @function VG_(run_a_noredir_translation): /* save callee-save int regs, & lr */ stwu 1,-256(1) @@ -615,6 +618,7 @@ VG_(run_a_noredir_translation): lwz 31,196(1) addi 1,1,256 blr +.size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) /* Let the linker know we don't need an executable stack */ diff --git a/coregrind/m_dispatch/dispatch-ppc64-linux.S b/coregrind/m_dispatch/dispatch-ppc64-linux.S index 28629145e5..6256e484be 100644 --- a/coregrind/m_dispatch/dispatch-ppc64-linux.S +++ b/coregrind/m_dispatch/dispatch-ppc64-linux.S @@ -312,6 +312,7 @@ VG_(run_innerloop__dispatch_unprofiled): /* start over */ b .VG_(run_innerloop__dispatch_unprofiled) /*NOTREACHED*/ + .size VG_(run_innerloop), .-VG_(run_innerloop) /*----------------------------------------------------*/ @@ -389,6 +390,7 @@ VG_(run_innerloop__dispatch_profiled): /* start over */ b .VG_(run_innerloop__dispatch_profiled) /*NOTREACHED*/ + .size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) /*----------------------------------------------------*/ diff --git a/coregrind/m_dispatch/dispatch-x86-linux.S b/coregrind/m_dispatch/dispatch-x86-linux.S index 66d44fcf56..2392613133 100644 --- a/coregrind/m_dispatch/dispatch-x86-linux.S +++ b/coregrind/m_dispatch/dispatch-x86-linux.S @@ -275,6 +275,7 @@ void VG_(run_a_noredir_translation) ( UWord* argblock ); */ .align 16 .global VG_(run_a_noredir_translation) +.type VG_(run_a_noredir_translation), @function VG_(run_a_noredir_translation): /* Save callee-saves regs */ pushl %esi @@ -300,6 +301,7 @@ VG_(run_a_noredir_translation__return_point): popl %edi popl %esi ret +.size VG_(run_a_noredir_translation), .-VG_(run_a_noredir_translation) /* Let the linker know we don't need an executable stack */