Fix ARM_TARGET2_DWARF_FORMAT for vxworks
authorJerome Lambourg <lambourg@adacore.com>
Wed, 3 Oct 2018 09:31:36 +0000 (09:31 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Wed, 3 Oct 2018 09:31:36 +0000 (09:31 +0000)
2018-10-03  Jérôme Lambourg  <lambourg@adacore.com>

* config/arm/vxworks.h (ARM_TARGET2_DWARF_FORMAT): Adjust to
DW_EH_PE_pcrel | DW_EH_PE_indirect for RTPs.

From-SVN: r264808

gcc/ChangeLog
gcc/config/arm/vxworks.h

index a6e1a8ebdf0d74463db36ade34925bc46bf12654..f17bee7ea799e50e9b8406480043fc0949b8db91 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-03  Jérôme Lambourg  <lambourg@adacore.com>
+
+       * config/arm/vxworks.h (ARM_TARGET2_DWARF_FORMAT): Adjust to
+       DW_EH_PE_pcrel | DW_EH_PE_indirect for RTPs.
+
 2018-10-03  Martin Liska  <mliska@suse.cz>
 
        PR gcov-profile/86109
index fc0e411f6aff1edd418c737a61b2000deee1c6b5..a484944d3bf1250f8f7079e0383f03a05b081d8f 100644 (file)
@@ -125,7 +125,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
 #undef ARM_TARGET2_DWARF_FORMAT
 #define ARM_TARGET2_DWARF_FORMAT \
-  (TARGET_VXWORKS_RTP ? DW_EH_PE_pcrel : DW_EH_PE_absptr)
+  (TARGET_VXWORKS_RTP ? (DW_EH_PE_pcrel | DW_EH_PE_indirect) : DW_EH_PE_absptr)
 
 /* There is no default multilib.  */
 #undef MULTILIB_DEFAULTS