Objdump shows different symbols when disassembling and just printing symbolsWhat do +,- and ? symbols...
What makes a character irredeemable?
How can I find places to store/land a private airplane?
Check if number is in list of numbers
Single tx included in two different blocks
Does using a crossbow with the Sharpshooter feat change its range in underwater combat?
Is there a pattern for handling conflicting function parameters?
Does the DOJ's declining to investigate the Trump-Zelensky call ruin the basis for impeachment?
Is "Ram married his daughter" ambiguous?
What powers or limits devil promotion?
Is there an in-universe explanation of how Frodo's arrival in Valinor was recorded in the Red Book?
Manager told a colleague of mine I was getting fired soon
Citing CPLEX 12.9
Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?
As an interviewer, how to conduct interviews with candidates you already know will be rejected?
Duck, duck, gone!
Is it possible for both sides of an encounter to be surprised?
Why did they use ultrafast diodes in a 50 or 60 Hz bridge?
Could Boris Johnson face criminal charges for illegally proroguing Parliament?
Output impedance of TAPR QRPi?
Sending mail to the Professor for PhD, after seeing his tweet
How to refresh wired service getRecord manually?
Generating numbers with cubes
Is right click on tables bad UX
What does a textbook look like while you are writing it?
Objdump shows different symbols when disassembling and just printing symbols
What do +,- and ? symbols represent in `service --status-all`LinuxMint “File System” shows no space when many GB existldd shows library exists and is linked, program doesn't find itldd returns “not a dynamic executable” for a 64-bit ELF, even though objdump and readelf disagreeWhy nm shows no symbols for /lib/i386-linux-gnu/libc.so.6?id and whoami commands shows different userjust grep multiple pattern on different rowWhy (and how) do I have (seemingly!) duplicate symbols in my shared libraries?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
Ubuntu 18.04
I have a simple ELF64
binary compiled from a C source file and linked with a shared object. I tried to examine it with objdump
and got the following confusion:
$ objdump -d -j .plt bin
bin: file format elf64-x86-64
Disassembly of section .plt:
00000000000006a0 <.plt>:
6a0: ff 35 62 09 20 00 pushq 0x200962(%rip) # 201008 <_GLOBAL_OFFSET_TABLE_+0x8>
6a6: ff 25 64 09 20 00 jmpq *0x200964(%rip) # 201010 <_GLOBAL_OFFSET_TABLE_+0x10>
6ac: 0f 1f 40 00 nopl 0x0(%rax)
00000000000006b0 <foo@plt>:
6b0: ff 25 62 09 20 00 jmpq *0x200962(%rip) # 201018 <foo>
6b6: 68 00 00 00 00 pushq $0x0
6bb: e9 e0 ff ff ff jmpq 6a0 <.plt>
00000000000006c0 <dlopen@plt>:
6c0: ff 25 5a 09 20 00 jmpq *0x20095a(%rip) # 201020 <dlopen@GLIBC_2.2.5>
6c6: 68 01 00 00 00 pushq $0x1
6cb: e9 d0 ff ff ff jmpq 6a0 <.plt>
00000000000006d0 <__printf_chk@plt>:
6d0: ff 25 52 09 20 00 jmpq *0x200952(%rip) # 201028 <__printf_chk@GLIBC_2.3.4>
6d6: 68 02 00 00 00 pushq $0x2
6db: e9 c0 ff ff ff jmpq 6a0 <.plt>
But when just printing symbols from a plt
section I got no output:
$ objdump -t -j .plt bin
bin: file format elf64-x86-64
SYMBOL TABLE:
00000000000006a0 l d .plt 0000000000000000 .plt
Why was not the symbols from the plt
section printed when objdump -t
as they were when disassembling?
linux ubuntu dynamic-linking
add a comment
|
Ubuntu 18.04
I have a simple ELF64
binary compiled from a C source file and linked with a shared object. I tried to examine it with objdump
and got the following confusion:
$ objdump -d -j .plt bin
bin: file format elf64-x86-64
Disassembly of section .plt:
00000000000006a0 <.plt>:
6a0: ff 35 62 09 20 00 pushq 0x200962(%rip) # 201008 <_GLOBAL_OFFSET_TABLE_+0x8>
6a6: ff 25 64 09 20 00 jmpq *0x200964(%rip) # 201010 <_GLOBAL_OFFSET_TABLE_+0x10>
6ac: 0f 1f 40 00 nopl 0x0(%rax)
00000000000006b0 <foo@plt>:
6b0: ff 25 62 09 20 00 jmpq *0x200962(%rip) # 201018 <foo>
6b6: 68 00 00 00 00 pushq $0x0
6bb: e9 e0 ff ff ff jmpq 6a0 <.plt>
00000000000006c0 <dlopen@plt>:
6c0: ff 25 5a 09 20 00 jmpq *0x20095a(%rip) # 201020 <dlopen@GLIBC_2.2.5>
6c6: 68 01 00 00 00 pushq $0x1
6cb: e9 d0 ff ff ff jmpq 6a0 <.plt>
00000000000006d0 <__printf_chk@plt>:
6d0: ff 25 52 09 20 00 jmpq *0x200952(%rip) # 201028 <__printf_chk@GLIBC_2.3.4>
6d6: 68 02 00 00 00 pushq $0x2
6db: e9 c0 ff ff ff jmpq 6a0 <.plt>
But when just printing symbols from a plt
section I got no output:
$ objdump -t -j .plt bin
bin: file format elf64-x86-64
SYMBOL TABLE:
00000000000006a0 l d .plt 0000000000000000 .plt
Why was not the symbols from the plt
section printed when objdump -t
as they were when disassembling?
linux ubuntu dynamic-linking
add a comment
|
Ubuntu 18.04
I have a simple ELF64
binary compiled from a C source file and linked with a shared object. I tried to examine it with objdump
and got the following confusion:
$ objdump -d -j .plt bin
bin: file format elf64-x86-64
Disassembly of section .plt:
00000000000006a0 <.plt>:
6a0: ff 35 62 09 20 00 pushq 0x200962(%rip) # 201008 <_GLOBAL_OFFSET_TABLE_+0x8>
6a6: ff 25 64 09 20 00 jmpq *0x200964(%rip) # 201010 <_GLOBAL_OFFSET_TABLE_+0x10>
6ac: 0f 1f 40 00 nopl 0x0(%rax)
00000000000006b0 <foo@plt>:
6b0: ff 25 62 09 20 00 jmpq *0x200962(%rip) # 201018 <foo>
6b6: 68 00 00 00 00 pushq $0x0
6bb: e9 e0 ff ff ff jmpq 6a0 <.plt>
00000000000006c0 <dlopen@plt>:
6c0: ff 25 5a 09 20 00 jmpq *0x20095a(%rip) # 201020 <dlopen@GLIBC_2.2.5>
6c6: 68 01 00 00 00 pushq $0x1
6cb: e9 d0 ff ff ff jmpq 6a0 <.plt>
00000000000006d0 <__printf_chk@plt>:
6d0: ff 25 52 09 20 00 jmpq *0x200952(%rip) # 201028 <__printf_chk@GLIBC_2.3.4>
6d6: 68 02 00 00 00 pushq $0x2
6db: e9 c0 ff ff ff jmpq 6a0 <.plt>
But when just printing symbols from a plt
section I got no output:
$ objdump -t -j .plt bin
bin: file format elf64-x86-64
SYMBOL TABLE:
00000000000006a0 l d .plt 0000000000000000 .plt
Why was not the symbols from the plt
section printed when objdump -t
as they were when disassembling?
linux ubuntu dynamic-linking
Ubuntu 18.04
I have a simple ELF64
binary compiled from a C source file and linked with a shared object. I tried to examine it with objdump
and got the following confusion:
$ objdump -d -j .plt bin
bin: file format elf64-x86-64
Disassembly of section .plt:
00000000000006a0 <.plt>:
6a0: ff 35 62 09 20 00 pushq 0x200962(%rip) # 201008 <_GLOBAL_OFFSET_TABLE_+0x8>
6a6: ff 25 64 09 20 00 jmpq *0x200964(%rip) # 201010 <_GLOBAL_OFFSET_TABLE_+0x10>
6ac: 0f 1f 40 00 nopl 0x0(%rax)
00000000000006b0 <foo@plt>:
6b0: ff 25 62 09 20 00 jmpq *0x200962(%rip) # 201018 <foo>
6b6: 68 00 00 00 00 pushq $0x0
6bb: e9 e0 ff ff ff jmpq 6a0 <.plt>
00000000000006c0 <dlopen@plt>:
6c0: ff 25 5a 09 20 00 jmpq *0x20095a(%rip) # 201020 <dlopen@GLIBC_2.2.5>
6c6: 68 01 00 00 00 pushq $0x1
6cb: e9 d0 ff ff ff jmpq 6a0 <.plt>
00000000000006d0 <__printf_chk@plt>:
6d0: ff 25 52 09 20 00 jmpq *0x200952(%rip) # 201028 <__printf_chk@GLIBC_2.3.4>
6d6: 68 02 00 00 00 pushq $0x2
6db: e9 c0 ff ff ff jmpq 6a0 <.plt>
But when just printing symbols from a plt
section I got no output:
$ objdump -t -j .plt bin
bin: file format elf64-x86-64
SYMBOL TABLE:
00000000000006a0 l d .plt 0000000000000000 .plt
Why was not the symbols from the plt
section printed when objdump -t
as they were when disassembling?
linux ubuntu dynamic-linking
linux ubuntu dynamic-linking
asked 7 mins ago
St.AntarioSt.Antario
1711 silver badge12 bronze badges
1711 silver badge12 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543980%2fobjdump-shows-different-symbols-when-disassembling-and-just-printing-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543980%2fobjdump-shows-different-symbols-when-disassembling-and-just-printing-symbols%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown