diff options
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 (); } |