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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)