The attached change fixes a problem compiling the linux dynamic loader
for the PA target.

Putting function labels (plabels) in the constant pool results
in a section flag conflict compiling rtld.c.  Other targets don't
do this, and testing indicates that it is not necessary.

Tested on hppa-unknown-linux-gnu, hppa2.0w-hp-hpux11.11 and
hppa64-hp-hpux11.11 with no regressions.

Committed to trunk.

Dave
-- 
J. David Anglin                                  dave.ang...@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2012-04-27  John David Anglin  <dave.ang...@nrc-cnrc.gc.ca>

        PR target/52999
        * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
        in constant pool.

Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c      (revision 186918)
+++ config/pa/pa.c      (working copy)
@@ -10332,9 +10332,6 @@
       && !pa_cint_ok_for_move (INTVAL (x)))
     return false;
 
-  if (function_label_operand (x, mode))
-    return false;
-
   return true;
 }
 

Reply via email to