llvm-project
f26470ae - [lld][ELF] Merge .ltext.* input sections into .ltext output section (#190305)

Commit
4 days ago
[lld][ELF] Merge .ltext.* input sections into .ltext output section (#190305) ## Motivation The default output section name rules in `getOutputSectionName()` already merge .ldata.*, .lrodata.*, and .lbss.* into their respective output sections, but .ltext.* was missing from the prefix list. This caused mcmodel=large builds with `-ffunction-sections` to produce a separate output section for every function instead of combining them into .ltext. We actually then ran into a bunch of esoteric issues because we the had to handle SHN_XINDEX binaries with >65535 sections, so in that sense it helped us find those gaps :) ## Changes Add .ltext to the prefix list alongside the other large-model section prefixes. Co-authored-by: Grigory Pastukhov <gpastukhov@meta.com>
Author
Parents
Loading