Skip to content
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

Add support for --start-lib / --end-lib to Wasm LLD to omit the use of archives #77960

Closed
trybka opened this issue Jan 12, 2024 · 1 comment · Fixed by #78821
Closed

Add support for --start-lib / --end-lib to Wasm LLD to omit the use of archives #77960

trybka opened this issue Jan 12, 2024 · 1 comment · Fixed by #78821
Assignees
Labels

Comments

@trybka
Copy link

trybka commented Jan 12, 2024

Request implementing -start-lib and -end-lib flags for wasm-ld, analogous to the flags in ld.lld.

Object files after -start-lib are included in the link only when needed to resolve undefined symbols. (-end-lib returns command-line processing to the original behavior)

This mimics static libraries without needing to create an archive.

+cc: @sbc100 @walkingeyerobot @googlewalt

@llvmbot
Copy link
Member

llvmbot commented Jan 12, 2024

@llvm/issue-subscribers-lld-wasm

Author: Tom Rybka (trybka)

Request implementing `-start-lib` and `-end-lib` flags for `wasm-ld`, analogous to the flags in `ld.lld`.

Object files after -start-lib are included in the link only when needed to resolve undefined symbols. (-end-lib returns command-line processing to the original behavior)

This mimics static libraries without needing to create an archive.

+cc: @sbc100 @walkingeyerobot @googlewalt

@sbc100 sbc100 self-assigned this Jan 12, 2024
sbc100 added a commit to sbc100/llvm-project that referenced this issue Jan 19, 2024
…chive indexes.

The ELF linker transitioned away from archive indexes in
https://reviews.llvm.org/D117284.

This paves the way for supporting `--start-lib`/`--end-lib` (See llvm#77960)

The ELF linker unified library handling with `--start-lib`/`--end-lib`
handling in https://reviews.llvm.org/D119074.
sbc100 added a commit that referenced this issue Jan 20, 2024
…chive indexes. (#78658)

The ELF linker transitioned away from archive indexes in
https://reviews.llvm.org/D117284.

This paves the way for supporting `--start-lib`/`--end-lib` (See #77960)

The ELF linker unified library handling with `--start-lib`/`--end-lib` and removed
the ArchiveFile class in https://reviews.llvm.org/D119074.
sbc100 added a commit to sbc100/llvm-project that referenced this issue Jan 20, 2024
sbc100 added a commit to sbc100/llvm-project that referenced this issue Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants