emscripten-core / emscripten-core/emscripten

[Question] Emscripten and linker scripts

Open
#23,637 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I currently have a shared library which in order to link to a main_module I have to export a large list of symbols
![Image](https://github.com/user-attachments/assets/8c29b631-f886-49a4-ba1e-d203b38011c7)

As part of the review of the PR where I include this large list of symbols to be added as link flags I got asked the following question
![Image](https://github.com/user-attachments/assets/c1ed41ce-80ea-4902-9bf2-61b77e56c04e)

I can find no reference to linker scripts in the documentation. As someone who has never used them before even for native builds, I thought I would double check that Emscripten does support them before I start the work of working out how to construct an equivalent linker script to what I am currently doing. Can someone confirm if they are supported by Emscripten or not?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.