diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-09-12 23:45:03 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-09-12 23:45:03 +0000 |
commit | 2e53734e19bedbe85a7438d59e5024815228065c (patch) | |
tree | ff3eaf1093ad1d02f6ef085641067e3d820d7416 /gcc/config/darwin.c | |
parent | edeb387130d1abc819b23390bc95595c65cea879 (diff) | |
download | gcc-2e53734e19bedbe85a7438d59e5024815228065c.zip gcc-2e53734e19bedbe85a7438d59e5024815228065c.tar.gz gcc-2e53734e19bedbe85a7438d59e5024815228065c.tar.bz2 |
darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation.
* config/darwin.c (machopic_select_rtx_section): Use
const_data_section for things that might require relocation.
From-SVN: r71345
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 4c019c7..695ec69 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 (); } |