Add adds support for naming data segments. This is useful
useful linkers so that they can merge similar sections.
Details
- Reviewers
dschuff - Commits
- rGd95ed959d8ab: Reland "[WebAssembly] Add support for naming wasm data segments"
rGb292c259665d: [WebAssembly] Add support for naming wasm data segments
rL313795: Reland "[WebAssembly] Add support for naming wasm data segments"
rL313692: [WebAssembly] Add support for naming wasm data segments
Diff Detail
- Build Status
Buildable 10269 Build 10269: arc lint + arc unit
Event Timeline
So are we going to say that the mere existence of segment names tells the linker it should merge them as though they were separate data sections? (or, is there any other possible use?) Is there other potential per-MCSection metadata we'd want that would make this metadata end up more generic?
Yes, there is the potential that we might need more metadata down the road (type, flags, etc) but right now I think name is enough for to get init_array and fini_array working.
WRT to merging I plan to follow the same rules as the ELF version of lld. I'm hoping that name will be enough for me to do this, but I guess I might need type/flags down the road. However this change should be enough to get init_array / fini_array working which is my immediate goal.