This means that we can honor -fdata-sections rather than always creating
a segment for each symbol.
It also allows for a followup change to add .init_array and friends.
Paths
| Differential D37876
[WebAssembly] MC: Create wasm data segments based on MCSections ClosedPublic Authored by sbc100 on Sep 14 2017, 4:56 PM.
Details Summary This means that we can honor -fdata-sections rather than always creating It also allows for a followup change to add .init_array and friends.
Diff Detail
Event TimelineHerald added subscribers: aheejin, jgravelle-google, dschuff, jfb. · View Herald TranscriptSep 14 2017, 4:56 PM sbc100 added a child revision: D37886: [WebAssembly] Add support for naming wasm data segments.Sep 14 2017, 7:25 PM Comment Actions Should the patch title be "create data *segments* based on MCSections"?
sbc100 retitled this revision from [WebAssembly] MC: Create data sections based on MCSections to [WebAssembly] MC: Create wasm data segments based on MCSections.Sep 15 2017, 12:11 PM Comment Actions Added support for explicit custom section names, and added new test
This revision is now accepted and ready to land.Sep 15 2017, 12:49 PM Closed by commit rL313395: [WebAssembly] MC: Create wasm data segments based on MCSections (authored by sbc). · Explain WhySep 15 2017, 1:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 115319 include/llvm/MC/MCSectionWasm.h
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/MCObjectFileInfo.cpp
lib/MC/MCWasmStreamer.cpp
lib/MC/WasmObjectWriter.cpp
|
Does this mean we don't support the .p2align directive?
If so, we should have a TODO to fix it. Or do we just expect it to get converted and we should never see this (in other words, can it be an assert instead)?