Commit 0a210a19 by Nick Clifton Committed by Nick Clifton

rl78.c (rl78_select_section): When -mes0 is active place read only data in the .frodata section.

	* config/rl78/rl78.c (rl78_select_section): When -mes0 is active
	place read only data in the .frodata section.

From-SVN: r224270
parent 99e9cec8
2015-06-09 Nick Clifton <nickc@redhat.com>
* config/rl78/rl78.c (rl78_select_section): When -mes0 is active
place read only data in the .frodata section.
2015-06-09 Shiva Chen <shiva0217@gmail.com> 2015-06-09 Shiva Chen <shiva0217@gmail.com>
* sync.md (atomic_load<mode>): Add conditional code for lda/ldr * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
......
...@@ -4417,14 +4417,14 @@ rl78_select_section (tree decl, ...@@ -4417,14 +4417,14 @@ rl78_select_section (tree decl,
} }
if (readonly) if (readonly)
return readonly_data_section; return TARGET_ES0 ? frodata_section : readonly_data_section;
switch (categorize_decl_for_section (decl, reloc)) switch (categorize_decl_for_section (decl, reloc))
{ {
case SECCAT_TEXT: return text_section; case SECCAT_TEXT: return text_section;
case SECCAT_DATA: return data_section; case SECCAT_DATA: return data_section;
case SECCAT_BSS: return bss_section; case SECCAT_BSS: return bss_section;
case SECCAT_RODATA: return readonly_data_section; case SECCAT_RODATA: return TARGET_ES0 ? frodata_section : readonly_data_section;
default: default:
return default_select_section (decl, reloc, align); return default_select_section (decl, reloc, align);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment