ld --print-gc-sections dumps "removing unused section ..." messages to stderr (I'd expect stdout instead. Both lld and mold use stdout). mold and lld are considering --print-gc-sections=file https://github.com/rui314/mold/pull/1507