On 02/13/2015 05:22 AM, John David Anglin wrote: > + /* Reload sometimes tries to put const data symbolic operands in > + readonly memory. The HP SOM linker doesn't allow symbolic data > + in readonly memory. */ > + if (TARGET_SOM > + && !function_label_operand (x, VOIDmode) > + && symbolic_operand (x, VOIDmode)) > + return true;
You probably want to remove the SOM test. Even if ELF can represent this, it will lead to DT_TEXTREL and relocations against the read-only memory. r~