emscripten-core / emscripten-core/emscripten

[Question] Emscripten and linker scripts

Offen
#23,637 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
27.6k
Forks
3.6k
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
125

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Es wird keine Quelldatei oder kein Test genannt. Beginne damit, die Unterstützung von Emscripten für linker-script und die vorhandene Dokumentation zu prüfen, und vergleiche anschließend die angeforderten symbol exports mit den aktuellen link flags. Als abgeschlossen gilt die Bestätigung, ob dies unterstützt wird oder nicht, und, falls es unterstützt wird, eine dokumentierte Anleitung für ein gleichwertiges linker script.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
wasm
Bereich
build-system, compilers
Issue-Typ
Dokumentation
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.