wrapgen: Fix address resolution in dynamic section#1355
Merged
facekapow merged 1 commit intodarlinghq:masterfrom May 1, 2023
Merged
wrapgen: Fix address resolution in dynamic section#1355facekapow merged 1 commit intodarlinghq:masterfrom
facekapow merged 1 commit intodarlinghq:masterfrom
Conversation
The values are addresses which aren't necessarily equal to file offsets.
12 tasks
Member
|
Makes sense to me too |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The values are virtual addresses which aren't necessarily equal to file offsets. For example, this is what my
libavcodec.solooks like:Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flags Align LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x000000000006e188 0x000000000006e188 R 0x1000 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0x10 LOAD 0x000000000006f000 0x000000000006f000 0x000000000006f000 0x00000000009c17b1 0x00000000009c17b1 R E 0x1000 LOAD 0x0000000000a31000 0x0000000000a31000 0x0000000000a31000 0x0000000000454548 0x0000000000454548 R 0x1000 GNU_EH_FRAME 0x0000000000dcf6a0 0x0000000000dcf6a0 0x0000000000dcf6a0 0x0000000000014114 0x0000000000014114 R 0x4 LOAD 0x0000000000e86470 0x0000000000e86470 0x0000000000e86470 0x0000000000068400 0x00000000004c66c0 RW 0x1000 GNU_RELRO 0x0000000000e86470 0x0000000000e86470 0x0000000000e86470 0x0000000000066b90 0x0000000000066b90 R 0x1 DYNAMIC 0x0000000000eeb920 0x0000000000eeb920 0x0000000000eeb920 0x0000000000000360 0x0000000000000360 RW 0x8 LOAD 0x0000000000fc2000 0x000000000134d000 0x000000000134d000 0x0000000000004ff0 0x0000000000004ff0 RW 0x1000(The dynamic section is loaded in the last segment)