yurydelendik opened PR #1831 from relocs
to master
:
This is a major refactoring to:
- Uniformly handle relocation data for functions and trampolines
- Store relocations with its code
- Separate debug image generation from DWARF sections creation (and their relocations)
- Cleaner linking
No new functionality added here, mostly moving code around. Though it is a first step to allow serialization of compilation artifacts with ability to instantiate that later.
alexcrichton created PR Review Comment:
Is the goal here to largely get rid of the
Compilation
structure? I used that for a bit as a convenient "here's a package of a whole bunch of stuff" so when a field was added you didn't have to go add a bunch of parameters to a bunch of functions.Also I think the
<'a>
here can be removed?
alexcrichton submitted PR Review.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
I probably wouldn't bother defining this since it's only used for one function.
yurydelendik submitted PR Review.
yurydelendik created PR Review Comment:
yes, the caller "shreds" fields of the
Compilation
and changes their ownership -- only few are useful here (seeLinkContext
below). Passing entireCompilation
intolink_module
blocks few compilation operations to be done sooner.
yurydelendik updated PR #1831 from relocs
to master
:
This is a major refactoring to:
- Uniformly handle relocation data for functions and trampolines
- Store relocations with its code
- Separate debug image generation from DWARF sections creation (and their relocations)
- Cleaner linking
No new functionality added here, mostly moving code around. Though it is a first step to allow serialization of compilation artifacts with ability to instantiate that later.
alexcrichton merged PR #1831.
Last updated: Nov 22 2024 at 17:03 UTC