This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Always include bss segments when `--emit-relocs` is used
ClosedPublic

Authored by sbc100 on Aug 15 2023, 2:50 PM.

Details

Summary

If we don't do this then we end up with symbols that refer to
non-existent segments.

Diff Detail

Event Timeline

sbc100 created this revision.Aug 15 2023, 2:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 2:50 PM
Herald added subscribers: pmatos, asb, wingo and 3 others. · View Herald Transcript
sbc100 requested review of this revision.Aug 15 2023, 2:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 15 2023, 2:50 PM
sbc100 updated this revision to Diff 550496.Aug 15 2023, 3:03 PM

add test

dschuff accepted this revision.Aug 15 2023, 4:58 PM
dschuff added inline comments.
lld/wasm/Writer.cpp
679–682
This revision is now accepted and ready to land.Aug 15 2023, 4:58 PM
sbc100 updated this revision to Diff 550553.Aug 15 2023, 5:00 PM
sbc100 marked an inline comment as done.
  • feedback
This revision was landed with ongoing or failed builds.Aug 15 2023, 5:04 PM
This revision was automatically updated to reflect the committed changes.