Fix problem with relocs in read-only sections for C++ code.

* config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
	flag_pic and RELOC.

From-SVN: r33239
This commit is contained in:
Jim Wilson 2000-04-18 23:05:34 +00:00 committed by Jim Wilson
parent 86702e3134
commit 20c8a6c293
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Apr 18 16:04:12 2000 Jim Wilson <wilson@cygnus.com>
* config/ia64/sysv4.h (SELECT_SECTION): Use data_section if
flag_pic and RELOC.
2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
* cccp.c, cexp.y, cexp.c, cccp.1: Removed.

View File

@ -206,6 +206,10 @@ do { \
else \
data_section (); \
} \
/* This could be a CONSTRUCTOR containing ADDR_EXPR of a VAR_DECL, \
in which case we can't put it in a shared library rodata. */ \
else if (flag_pic && (RELOC)) \
data_section (); \
else \
const_section (); \
}