This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] Change "Q" and "T" constraints to memory constraints


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]