Skip to content

Report more undefined symbols at wasm-ld time #21000

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

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 3, 2024

Symbols that are part of EXPORTED_FUNCTIONS are now reported by wasm-ld.

@sbc100 sbc100 requested a review from kripken January 4, 2024 00:33
for export in settings.REQUIRED_EXPORTS:
if settings.ERROR_ON_UNDEFINED_SYMBOLS:
# We give special treatment to the `main` function since its
# always allowed to be undefined.
Copy link
Member

Choose a reason for hiding this comment

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

Is main always allowed to be undefined, even if it is in EXPORTED_FUNCTIONS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was being lazy here... refactored to avoid this special case.

@sbc100 sbc100 force-pushed the wasm_ld_report_undefined branch from aa88b69 to 96163a3 Compare January 4, 2024 01:21
@sbc100 sbc100 enabled auto-merge (squash) January 4, 2024 02:09
@sbc100 sbc100 force-pushed the wasm_ld_report_undefined branch from 96163a3 to 958042d Compare January 4, 2024 08:54
@sbc100 sbc100 force-pushed the wasm_ld_report_undefined branch from 958042d to 35e3336 Compare January 4, 2024 21:50
Symbols that are part of EXPORTED_FUNCTIONS are now reported by wasm-ld.
@sbc100 sbc100 force-pushed the wasm_ld_report_undefined branch from 35e3336 to 50a76e7 Compare January 4, 2024 22:22
@sbc100 sbc100 merged commit 2701825 into emscripten-core:main Jan 4, 2024
@sbc100 sbc100 deleted the wasm_ld_report_undefined branch January 4, 2024 23:31
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.

2 participants