diff options
| author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-12 23:45:03 +0000 |
|---|---|---|
| committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-12 23:45:03 +0000 |
| commit | 76dece62d32fc4246cbe83fdde290e6845250bf6 (patch) | |
| tree | ff3eaf1093ad1d02f6ef085641067e3d820d7416 | |
| parent | eddeb9dafe98d8adfbd09443a1998081d3426eab (diff) | |
| download | ppe42-gcc-76dece62d32fc4246cbe83fdde290e6845250bf6.tar.gz ppe42-gcc-76dece62d32fc4246cbe83fdde290e6845250bf6.zip | |
* config/darwin.c (machopic_select_rtx_section): Use
const_data_section for things that might require relocation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71345 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/darwin.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 29d7b164ec7..42753bb417f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-12 Geoffrey Keating <geoffk@apple.com> + + * config/darwin.c (machopic_select_rtx_section): Use + const_data_section for things that might require relocation. + 2003-09-12 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/12264 diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 4c019c7eef7..695ec692952 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1242,6 +1242,11 @@ machopic_select_rtx_section (enum machine_mode mode, rtx x, && (GET_CODE (x) == CONST_INT || GET_CODE (x) == CONST_DOUBLE)) literal4_section (); + else if (! MACHO_DYNAMIC_NO_PIC_P + && (GET_CODE (x) == SYMBOL_REF + || GET_CODE (x) == CONST + || GET_CODE (x) == LABEL_REF)) + const_data_section (); else const_section (); } |

