abrown opened PR #1386 from fix-rodata
to master
:
Previously
test rodata
would cause failures when compiling Cranelift IR that had assertions about the current sink offset (e.g. multiple blocks, seeemit_function
inbinemit/mod.rs
). This was becauseRodataSink
was not keeping track of other emitted bytes--a692365 changes that.Additionally, I started to worry that having jump tables and constants might cause issues with RIP-relative addressing. f1c698e adds two tests to show that there is no issue.
abrown requested bnjbvr for a review on PR #1386.
abrown edited PR #1386 from fix-rodata
to master
:
Previously
test rodata
would cause failures when compiling Cranelift IR that had assertions about the current sink offset (e.g. multiple blocks, seeemit_function
inbinemit/mod.rs
). This was becauseRodataSink
was not keeping track of other emitted bytes; a692365 changes that.Additionally, I started to worry that having jump tables and constants might cause issues with RIP-relative addressing. f1c698e adds two tests to show that there is no issue.
bnjbvr submitted PR Review.
bnjbvr submitted PR Review.
bnjbvr created PR Review Comment:
Alternatively, what do you think of having the
RodataSink
struct have one moreusize
field calledoffset
? It would be returned by this function, and it would need to be updated by the functions below to take into account the offset sizes. This would have the benefit of storing less bytes in theemitted
vector, so it'd be more efficient and would make the tests run faster (no need for resizing, for instance).
abrown updated PR #1386 from fix-rodata
to master
:
Previously
test rodata
would cause failures when compiling Cranelift IR that had assertions about the current sink offset (e.g. multiple blocks, seeemit_function
inbinemit/mod.rs
). This was becauseRodataSink
was not keeping track of other emitted bytes; a692365 changes that.Additionally, I started to worry that having jump tables and constants might cause issues with RIP-relative addressing. f1c698e adds two tests to show that there is no issue.
abrown merged PR #1386.
Last updated: Dec 23 2024 at 12:05 UTC