Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFC Factor out common code between updateGOT and reportUndefinedSymbols #22124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hoodmane
Copy link
Contributor

Suggested in discussion on #22053

@hoodmane
Copy link
Contributor Author

@sbc100 I think the failure is a flake.

@kripken
Copy link
Member

kripken commented Jul 2, 2024

I re-ran tests here but the error recurred, though it did look like a flake. I tried to update the branch to fix that but now more tests fail, so there may be a larger issue here.

@@ -201,9 +201,30 @@ var LibraryDylink = {
#endif
;
},
$setGOTEntry__deps: ['$addFunction', '$getFunctionAddress'],
$setGOTEntry: (symName, value) => {
const entry = GOT[symName];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like both calls sites already have looked up the entry so perhaps we can pass the entry here too to avoid this extra lookup?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants