aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2019-04-11 14:14:35 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2019-04-11 10:14:35 -0400
commit8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38 (patch)
treef13cef9e220869c0c274397ba1b36026a609a2b3
parentf499726a0001acfa6a310f5dc148e1d7f3959452 (diff)
downloadgcc-8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38.zip
gcc-8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38.tar.gz
gcc-8f1d8deb29c6725d2c0f0d3fe13b19d52fffda38.tar.bz2
xcoffout.h (xcoff_private_rodata_section_name): Declare.
* xcoffout.h (xcoff_private_rodata_section_name): Declare. * xcoffout.c (xcoff_private_rodata_section_name): Define. * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create read_only_private_data_section using xcoff_private_rodata_section_name. (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name. From-SVN: r270284
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/rs6000/rs6000.c10
-rw-r--r--gcc/xcoffout.c1
-rw-r--r--gcc/xcoffout.h1
4 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 766ca7f..7131d58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2019-04-11 David Edelsohn <dje.gcc@gmail.com>
+
+ * xcoffout.h (xcoff_private_rodata_section_name): Declare.
+ * xcoffout.c (xcoff_private_rodata_section_name): Define.
+ * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
+ read_only_private_data_section using xcoff_private_rodata_section_name.
+ (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
+
2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
PR target/90016
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index cc8dc94..d16dd24 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -33866,6 +33866,10 @@ rs6000_xcoff_asm_init_sections (void)
rs6000_xcoff_output_readwrite_section_asm_op,
&xcoff_private_data_section_name);
+ read_only_private_data_section
+ = get_unnamed_section (0, rs6000_xcoff_output_readonly_section_asm_op,
+ &xcoff_private_rodata_section_name);
+
tls_data_section
= get_unnamed_section (SECTION_TLS,
rs6000_xcoff_output_tls_section_asm_op,
@@ -33876,10 +33880,6 @@ rs6000_xcoff_asm_init_sections (void)
rs6000_xcoff_output_tls_section_asm_op,
&xcoff_private_data_section_name);
- read_only_private_data_section
- = get_unnamed_section (0, rs6000_xcoff_output_readonly_section_asm_op,
- &xcoff_private_data_section_name);
-
toc_section
= get_unnamed_section (0, rs6000_xcoff_output_toc_section_asm_op, NULL);
@@ -34060,6 +34060,8 @@ rs6000_xcoff_file_start (void)
main_input_filename, ".bss_");
rs6000_gen_section_name (&xcoff_private_data_section_name,
main_input_filename, ".rw_");
+ rs6000_gen_section_name (&xcoff_private_rodata_section_name,
+ main_input_filename, ".rop_");
rs6000_gen_section_name (&xcoff_read_only_section_name,
main_input_filename, ".ro_");
rs6000_gen_section_name (&xcoff_tls_data_section_name,
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index f8ee178..771913b 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -64,6 +64,7 @@ static const char *xcoff_current_function_file;
char *xcoff_bss_section_name;
char *xcoff_private_data_section_name;
+char *xcoff_private_rodata_section_name;
char *xcoff_tls_data_section_name;
char *xcoff_tbss_section_name;
char *xcoff_read_only_section_name;
diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h
index 7444cf1..d8a0312 100644
--- a/gcc/xcoffout.h
+++ b/gcc/xcoffout.h
@@ -127,6 +127,7 @@ extern const char *xcoff_current_include_file;
extern char *xcoff_bss_section_name;
extern char *xcoff_private_data_section_name;
+extern char *xcoff_private_rodata_section_name;
extern char *xcoff_tls_data_section_name;
extern char *xcoff_tbss_section_name;
extern char *xcoff_read_only_section_name;