finding the cscet len - Aix

This is a discussion on finding the cscet len - Aix ; the xcoff documentation says that the x_scnlen field values for different x_smtyp field x_scnlen If Then XTY_SD x_scnlen contains the csect length. XTY_LD x_scnlen contains the symbol table index of the containing csect. XTY_CM x_scnlen contains the csect length. XTY_ER ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: finding the cscet len

  1. finding the cscet len

    the xcoff documentation says that the x_scnlen field values for
    different x_smtyp field
    x_scnlen

    If
    Then
    XTY_SD
    x_scnlen contains the csect length.
    XTY_LD
    x_scnlen contains the symbol table index of the containing csect.
    XTY_CM
    x_scnlen contains the csect length.
    XTY_ER
    x_scnlen contains 0.

    so when the x_smtyp field is XTY_LD how do i find the csect length.


  2. Re: finding the cscet len

    shankha wrote:
    > If
    > Then
    > XTY_SD
    > x_scnlen contains the csect length.
    > XTY_LD
    > x_scnlen contains the symbol table index of the containing csect.
    > XTY_CM
    > x_scnlen contains the csect length.
    > XTY_ER
    > x_scnlen contains 0.
    >
    > so when the x_smtyp field is XTY_LD how do i find the csect length.
    >


    You back up to the symbol table entry (via the provided
    index) of the containing csect and look at its length. A
    label definition doesn't have a length; only the csect
    containing the label has length.

+ Reply to Thread