Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

elf_getarsym(3e) [hpux man page]

elf_getarsym(3E)														  elf_getarsym(3E)

NAME
elf_getarsym - retrieve archive symbol table SYNOPSIS
[flag... ] file... [library] ... DESCRIPTION
returns a pointer to the archive symbol table, if one is available for the ELF descriptor Otherwise, the archive does not have a symbol ta- ble, an error occurred, or was null; then returns a null value. The symbol table is an array of structures that include the following mem- bers. These members have the following semantics. A pointer to a null-terminated symbol name resides here. A byte offset from the beginning of the archive to the member's header. The archive member residing at the given offset defines the associated symbol. Values in may be passed as arguments to to access the desired archive member. A hash value for the name, as computed by If ptr is non-null, the library stores the number of table entries in the location to which ptr points. This value is set to zero when the return value is null. The table's last entry, which is included in the count, has a null a zero value for and for SEE ALSO
elf(3E), elf_getarhdr(3E), elf_hash(3E), elf_rand(3E), ar(4). elf_getarsym(3E)

Check Out this Related Man Page

elf_getarsym(3ELF)					       ELF Library Functions						elf_getarsym(3ELF)

NAME
elf_getarsym - retrieve archive symbol table SYNOPSIS
cc [ flag ... ] file ... -lelf [ library ... ] #include <libelf.h> Elf_Arsym *elf_getarsym(Elf *elf, size_t *ptr); DESCRIPTION
The elf_getarsym() function returns a pointer to the archive symbol table, if one is available for the ELF descriptor elf. Otherwise, the archive doesn't have a symbol table, an error occurred, or elf was null; elf_getarsym() then returns a null value. The symbol table is an array of structures that include the following members. char *as_name; size_t as_off; unsigned long as_hash; These members have the following semantics: as_name A pointer to a null-terminated symbol name resides here. as_off This value is a byte offset from the beginning of the archive to the member's header. The archive member residing at the given offset defines the associated symbol. Values in as_off may be passed as arguments to elf_rand(). See elf_begin(3ELF) to access the desired archive member. as_hash This is a hash value for the name, as computed by elf_hash(). If ptr is non-null, the library stores the number of table entries in the location to which ptr points. This value is set to 0 when the return value is NULL. The table's last entry, which is included in the count, has a null as_name, a zero value for as_off, and ~0UL for as_hash. The hash value returned is guaranteed not to be the bit pattern of all ones ( ~0UL). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
ar.h(3HEAD), elf(3ELF), elf_begin(3ELF), elf_getarhdr(3ELF), elf_hash(3ELF), libelf(3LIB), attributes(5) SunOS 5.10 11 Jul 2001 elf_getarsym(3ELF)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

no symbol table

Hi@all, I try to compile c code on hpux 11.11 pa-risc 2 with gcc (32bit). I compile with the option -g, so that I get the symbol table, but it is not available. Does someone knows something on this? thx (2 Replies)
Discussion started by: Dom_Cyrus
2 Replies

2. UNIX for Dummies Questions & Answers

The > symbol

Hi guys, Im new to unix; I have a problem at hand. Somehow at the terminal, I lost the command prompt, instead I get a ">" symbol. Anything I type in does me no good. What do you recommend? Thank you for your help. (3 Replies)
Discussion started by: csb
3 Replies

3. Programming

how to view symbol table in unix

hi , How to view the contents of a "c" program symbol table information in unix. (1 Reply)
Discussion started by: saravanan_nitt
1 Replies

4. UNIX for Dummies Questions & Answers

or

What is the symbol for "or" ? I am trying to say: enter Y or y (1 Reply)
Discussion started by: skooly5
1 Replies

5. UNIX for Advanced & Expert Users

overhead in the archive

Hi everyone, I am currently trying to work out the size overhead in the library archive. The total size of all my objects file is about 100KB. However, when I package them into the archive (libXX.a), the size gets boosted up to 200KB. I want to know what exact is that 100KB overhead. I tried... (1 Reply)
Discussion started by: jasoncrab
1 Replies

6. UNIX for Advanced & Expert Users

look up error

what is this symbol lookup error:undefined symbol. And when it comes? (3 Replies)
Discussion started by: prangin
3 Replies

7. HP-UX

@ symbol at UNIX prompt

Hi, I am not able to type the symbol '@' on my UNIX prompt. Do I need to setup any enviornment for this. Thanks in advance. Thanks San (2 Replies)
Discussion started by: san
2 Replies

8. Shell Programming and Scripting

remove verticalbar or pipe symbol

hi guys i have 6000 rows column the text in the column has the symbol vertical bar |. i tried some of the commands to remove it but none of the commands are reconzng this symbol. would u plz help to remove this symbol from the text with any kind of unix command u r help would be appreciated ... (9 Replies)
Discussion started by: bogu0001
9 Replies

9. Linux

Replace cloud symbol with single quotes

Dear Experts My source file contains the symbol cloud (☁). How do i replace this ☁ symbol whose Unicode value is 2601 in linux file with single quotes ? Any help will be much appreciated. Many thanks (4 Replies)
Discussion started by: pklcnu
4 Replies

10. UNIX for Dummies Questions & Answers

having issues in using Cut Command

Hi, I would like to ask for your help with my problem, im writing a unix script to remove characters before the symbol "/", but the one being removed are characters after the symbol. Ive searched over the internet and found no answer.. hope you can help me with this. sample: text... (2 Replies)
Discussion started by: paoie
2 Replies

11. Shell Programming and Scripting

Need to add symbol in every end of line.

hi, In my input file i have less number of pipe symbol , it is suppose to be 10 pipe symbol. If the inputfile have less than 10 pipesymbol then i need append upto 10 pipe symbol. please help to solve problem. Input file : abc|xyz| 1|2|3|4|5| s| 1|2||||||||| Output file : ... (4 Replies)
Discussion started by: Jairaj
4 Replies

12. Shell Programming and Scripting

search and delete the lines in a file

HI group members I am new in unix I want to search # symbol in a file. if found need to delete the entire row in the file. need to move the actual data(with out # symbol data) to another file. Thanks (2 Replies)
Discussion started by: pmreddy
2 Replies

13. Shell Programming and Scripting

On £ symbol

Hi All, How do i represent £ symbol in unix and how to retain £ symbol in file. Thanks in Advance (3 Replies)
Discussion started by: HemaV
3 Replies

14. Shell Programming and Scripting

SFTP file and archive only if its succedded

Hi All, I have a requirement where I have to archive the file as soon as I sFTP the file to remote location below is the code I am going with ls $FILE_NAME | while read FNAME do sftp -v -oport=nn $FTP_USER@$FTP_HOST <<EOF 2>&1 | tee -a ${LOG_FILE_NAME} cd ${TGT_FOLDER_NAME} lcd... (4 Replies)
Discussion started by: Pratik4891
4 Replies

15. UNIX for Beginners Questions & Answers

Confusion in working of carat(^) symbol

hi All, i have googled and found that below are the functionality of carat symbol Meaning of carat is "at the beginning of line"; "it can also negate matches" how do i know when carat is behaving as beginning of line or as a negate. regards, scriptor (6 Replies)
Discussion started by: scriptor
6 Replies