Skip to content

finalize: Strip "em_js" named data segment. #3553

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

Closed
wants to merge 1 commit into from
Closed

Conversation

sbc100
Copy link
Member

@sbc100 sbc100 commented Feb 8, 2021

If we find a data segment with the name "em_js", strip it from the
binary. Even in debug mode the names given to data segments by clang
will always start with ".data." or ".rodata" so there is no risk of
normal data ending up in a section with this name.

See: emscripten-core/emscripten#13443

@sbc100 sbc100 requested a review from tlively February 8, 2021 01:33
@sbc100 sbc100 force-pushed the remove_em_js_section branch from f1d4d65 to 3677ee8 Compare February 8, 2021 01:34
Base automatically changed from fix_em_js_func_removal to main February 8, 2021 19:48
@sbc100 sbc100 force-pushed the remove_em_js_section branch 7 times, most recently from 5afa64c to 52441fb Compare February 8, 2021 23:27
If we find a data segment whose entire contents is EM_JS or EM_ASM
strings then strip it from the binary.

See: emscripten-core/emscripten#13443
@sbc100 sbc100 force-pushed the remove_em_js_section branch from 52441fb to 01b115a Compare February 9, 2021 03:50
@sbc100 sbc100 closed this Feb 9, 2021
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.

1 participant