GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Parse both .rela.dyn and .rela.plt of libraries. by krk · Pull Request #1074 · async-profiler/async-profiler Conversation
Contributor
It is possible to have symbols in both async-profiler did not parse Support parsing Related issuesMotivation and contextWhile investigating #1060 and the possible fix in #1065, noticed that How has this been tested?New test added in By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAlso parse R_X86_64_64 relocations in x86-64 builds.
apangin
reviewed
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great job on creating a test case that produces different relocation types in one binary.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
| } else if (rel != NULL && relsz != 0) { | ||
| } | ||
|
|
||
| if (rel != NULL && relsz != 0) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can the same function occur in multiple relocations? I believe it can. We don't necessarily need to handle such cases right now, but if this happens, .rela.plt should take precedence.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ElfSymbol* sym = (ElfSymbol*)(symtab + ELF_R_SYM(r->r_info) * syment); | ||
| if (sym->st_name != 0) { | ||
| _cc->addImport((void**)(base + r->r_offset), strtab + sym->st_name); | ||
| _cc->tryAddImport((void**)(base + r->r_offset), strtab + sym->st_name); |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe just switch the order of these two loops? This will ensure proper precedence automatically without 'override' logic in CodeCache?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This reverts commit 73c334a.
Signed-off-by: Andrei Pangin <[email protected]>
Signed-off-by: Andrei Pangin <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.