Embedding binary data should be part of the language/toolchain, not the operating system. For example, include_bytes!() in Rust.
> I also doubt Freedesktop are going to specify special ELF sections or something for icons
They should. It would stop my icons from disappearing / changing on me while Iam not looking.