Questions tagged [symbol-table]
16 questions
43
votes
3 answers
Why nm shows no symbols for /lib/i386-linux-gnu/libc.so.6?
I expected to see number of symbols in the libc.so.6 file including printf. I used the nm tool to find them, however it says there is no symbol in libc.so.6.
masec
- 615
- 1
- 7
- 12
9
votes
1 answer
Function symbol gets '.part' suffix after compilation
When cross compiling the Linux kernel 3.18.10, the compiler adds a .part. suffix at the end of some symbols (see an example below). The number changes when using different defconfigs. Does anybody know under which conditions the compiler adds…
mblaettler
- 93
- 5
6
votes
1 answer
How to handle accents with enscript?
I cannot figure out how to handle accents with enscript when converting a txt into a pdf:
echo "élisée" | enscript -o - -X | ps2pdf - output.pdf
I tried all possible encoding but none are leading to the proper result.
I guess I should…
user123456
- 4,758
- 11
- 52
- 78
5
votes
1 answer
What are difference between the ELF symbol visibility levels?
The NASM docs on "elf Extensions to the GLOBAL Directive" say,
Optionally, you can control the ELF visibility of the symbol. Just add one of the visibility keywords: default, internal, hidden, or protected. The default is default of course.
Where…
Evan Carroll
- 28,578
- 45
- 164
- 290
3
votes
1 answer
Can the kernel symbols' addresses be influenced? consequences?
tl;dr: in my distros linux 3.08 kernel using cat /proc/kallsyms I can find out that for instance the _commit_creds function/symbol is located at address 0xc1073fe0. When either:
building my kernel (option 1)
via tweaking the kernel binary (option…
humanityANDpeace
- 13,722
- 13
- 61
- 107
2
votes
1 answer
ELF symbol: GLOBAL+HIDDEN
Based on eg. this Oracle description:
STB_GLOBAL
Global symbols. These symbols are visible to all object files being combined. One file's definition of a global symbol will satisfy another file's undefined reference to the same global…
2
votes
0 answers
Symbol lookup error for libreadline
I recently started having problems with running programs like sqlite3 or awk on Ubuntu20.
These programs won't start and just show this error:
symbol lookup error: /usr/local/lib/libreadline.so.8: undefined symbol: UP
I found several solutions but…
Juraj Bezručka
- 121
- 5
2
votes
1 answer
What is the number in readelf symbol table name?
I have a local static variable, something like this:
void function(void) {
static unsigned char myVariable = 0;
...
I dump the symbol table using readelf as follows:
readelf -s myprogram.elf
and I get the symbol table, that contains…
waszil
- 123
- 3
2
votes
2 answers
Extracting the size and origin of all symbols in an ELF
I am trying to estimate the code size of a binary's various components. I have access to the source code and resulting build directory containing all built object files. Of course, I want to include only the symbols that are actually used, so adding…
sherrellbc
- 2,461
- 7
- 28
- 41
2
votes
1 answer
Linux kernel, missing '__fentry__' symbol
Trying to build the EtherCAT master driver (realtime I/O driver) on a RT Linux (SL6.3) I keep bumping into a missing symbol issue when building the EtherCAT kernel modules:
# make modules
make -C "/usr/src/kernels/3.8.13-rt27.40.el6rt.x86_64"…
fduff
- 4,925
- 4
- 35
- 39
1
vote
0 answers
Access list of all symbols exported `/proc/kallsyms` from inside kernel module?
I'm writing a simple kernel module and it seems on the newest kernel versions (I've tried 5.8, 5.10, 6.0) functions like kallsyms_lookup_name and kallsyms_on_each_symbol are no longer exported, meaning they can't be accessed through kallsyms.h. So,…
Allan Almeida
- 13
- 2
1
vote
1 answer
No version symbols in freshly compiled libstdc++
I'm compiling version 10.1 of GCC using the following configuration:
../configure --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --prefix=/home/user/toolchain/gcc --enable-checking=release…
JeanMi
- 131
- 4
1
vote
2 answers
Why do some libc symbols have WEAK binding and others GLOBAL?
Why are different symbols in libc declared with different bindings,
1510 0x0003d200 0xf7d55200 WEAK FUNC 55 system
454 0x00067b40 0xf7d7fb40 WEAK FUNC 474 puts
147 0x000303d0 0xf7d483d0 GLOBAL FUNC 33 exit
From readelf -s…
Evan Carroll
- 28,578
- 45
- 164
- 290
1
vote
2 answers
Need to type special symbol in vi
I want to type ½ in vi mode but it is coming with extra character ½. I am pressing ALT+0189. I have searched a lot on the same but failed to get.
api1411
- 124
- 3
- 10
0
votes
1 answer
the value of system calls are 0 in symbol table
i use the following command to see the symbol table of my binary:
readelf -s mybinary
you can see part of the output below:
as you can see the value of all system calls such as printf and exit are 00000000. but i want to find the address of this…
sarahh
- 1