toolsandutils/e32tools/checklib/object/elf/elf_symbol.h
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef ELF_SYMBOL_H
       
    17 #define ELF_SYMBOL_H
       
    18 
       
    19 #include "elftools/inc/elfdefs.h"
       
    20 #include <stdint.h>
       
    21 
       
    22 
       
    23 namespace elf
       
    24 {
       
    25     class Symbol
       
    26     {
       
    27     public:
       
    28         Symbol(const char*);
       
    29 
       
    30         uint32_t get_name() const ;
       
    31         uint32_t get_value() const ;
       
    32         uint32_t get_size() const ;
       
    33 
       
    34         bool is_info_bind_local() const;
       
    35         bool is_info_bind_global() const;
       
    36         bool is_info_bind_weak() const;
       
    37 
       
    38         bool is_info_type_notype() const;
       
    39         bool is_info_type_object() const;
       
    40         bool is_info_type_func() const;
       
    41         bool is_info_type_section() const;
       
    42         bool is_info_type_file() const;
       
    43         //bool is_info_type_common() const;
       
    44         //bool is_info_type_tls() const;
       
    45 
       
    46         uint8_t  get_info_other() const ;
       
    47         uint8_t  get_other() const ;
       
    48         uint16_t get_shndx() const ;
       
    49     private:
       
    50         const Elf32_Sym* m_data;
       
    51     };
       
    52 
       
    53 }
       
    54 
       
    55 
       
    56 #endif
       
    57