emscripten-core / emscripten-core/emscripten

[Question] Emscripten and linker scripts

Aperta
#23,637 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
27.6k
Fork
3.6k
Merge medio
1g 14h
PR unite (30g)
125

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non è indicato alcun file sorgente né alcun test. Inizia verificando il supporto di Emscripten per linker-script e la documentazione esistente, quindi confronta le esportazioni dei simboli richieste con gli attuali link flags. Il lavoro è completo quando è stata confermata una risposta sul fatto che sia supportato o meno e, se è supportato, sono state documentate le istruzioni per un linker script equivalente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
wasm
Ambito
build-system, compilers
Tipo di issue
Documentazione
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.