Execution of data segments is not allowed in any OS available for the broad market.
This is true, but it is not the entire story. In Windows OSes you can simply call VirtualProtect to allow execution of runtime generated code.
(Edit to fix broken formatting)