#35 assembly functions not found by oprofpp

closed
None
5
2002-02-04
2001-11-22
Anonymous
No

This is a rehash of bug #475307

I tried declaring my functions as

GLOBAL:function function_name

But nasm didn't like the :function after the GLOBAL

The way they are (were) was

global function_name

This is what happens when I run oprofpp

[root@gtec72 tnvd]# oprofpp -d -l ./tnvd | grep -i mmx
DetectMMX (0 samples)
jpeg_detect_mmx (0 samples)

(jpeg_detect_mmx is a C function)

I know the mmx stuff is getting called because I get there in
gdb. Anyway, it not showing up with even 0
count like it should even if it weren't being called.

And this is what nm spits out.

[root@gtec72 tnvd]# nm tnvd | grep -i mmx | grep -i jpeg
0805ace4 T jpeg_detect_mmx
08070500 T jpeg_idct_2x2_mmx
080700c0 T jpeg_idct_4x4_mmx
08064330 T jpeg_idct_ifast_mmx
0806ed40 T jpeg_idct_islow_mmx
[root@gtec72 tnvd]#

Discussion

  • Nobody/Anonymous

    Logged In: NO

    DetectMMX (the other one found by oprofpp) is another C function as well.

     
  • Philippe Elie

    Philippe Elie - 2001-11-22

    Logged In: YES
    user_id=318973

    Shame on me, the correct syntax is

    GLOBAL function_name:function

    look at nasm_source/test/elfso.asm for further details,
    this is not documented in nasm doc.

    There is also another problem with nasm: nasm does not
    handle debug info so "op_to_source application_name"
    can't show the samples for assembly files. You must use
    "op_to_source -a -s app_name" to get full result,
    unhopefully
    the only syntax supported for assembly output is unix
    syntax.

    See also related bug:
    "mixing object file with/without debug info"

    regards,
    Phil

     
  • Philippe Elie

    Philippe Elie - 2001-11-22
    • assigned_to: nobody --> phil_e
     
  • John Levon

    John Levon - 2002-01-09

    Logged In: YES
    user_id=53034

    So what is this bug ? lack of nasm support ? if so,
    can we change the subject of the bug to that please ?

     
  • John Levon

    John Levon - 2002-02-02

    Logged In: YES
    user_id=53034

    phil, are you there ? :)

     
  • Philippe Elie

    Philippe Elie - 2002-02-04
    • status: open --> closed
     

Log in to post a comment.