]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/darwin.c (machopic_reloc_rw_mask): New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2007 17:00:11 +0000 (17:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2007 17:00:11 +0000 (17:00 +0000)
        * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
        * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122846 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/darwin-protos.h
gcc/config/darwin.c
gcc/config/darwin.h

index de0dd70eb1468559c49fedc5cc55093c40211d06..94c7bdf892c6bfadaf2abb79647420ff9c5613bf 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-12  Richard Henderson  <rth@redhat.com>
+
+        * config/darwin.c (machopic_reloc_rw_mask): New.
+        * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
+        * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
+
 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
 
        * cppdefault.c (cpp_EXEC_PREFIX): New variable.
index b28317b8b77cab607fef94c8d6516b311c41dbba..8981eded88b39c92851c66bf0939db23142c426d 100644 (file)
@@ -52,6 +52,7 @@ extern void darwin_set_default_type_attributes (tree);
 
 extern void machopic_finish (FILE *);
 
+extern int machopic_reloc_rw_mask (void);
 extern section *machopic_select_section (tree, int, unsigned HOST_WIDE_INT);
 extern section *machopic_select_rtx_section (enum machine_mode, rtx,
                                             unsigned HOST_WIDE_INT);
index 5796ace485d9e592f6568dcebf2480dca5ae9c7d..507b1b47a3f149b674aad4d5ab390f6f8ac7f22e 100644 (file)
@@ -1172,6 +1172,12 @@ darwin_mergeable_constant_section (tree exp,
   return readonly_data_section;
 }
 
+int
+machopic_reloc_rw_mask (void)
+{
+  return MACHOPIC_INDIRECT ? 3 : 0;
+}
+
 section *
 machopic_select_section (tree decl,
                         int reloc,
index efe1ef0e5219cb95da9ef59ee1cbec1bcf283cf1..07cc7767a65b788bec86f57b289745317f9dbec7 100644 (file)
@@ -701,6 +701,8 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS];
 #define TARGET_ASM_UNIQUE_SECTION darwin_unique_section
 #undef  TARGET_ASM_FUNCTION_RODATA_SECTION
 #define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
+#undef  TARGET_ASM_RELOC_RW_MASK
+#define TARGET_ASM_RELOC_RW_MASK machopic_reloc_rw_mask
 
 
 #define ASM_DECLARE_UNRESOLVED_REFERENCE(FILE,NAME)                    \