* RFA: RL78: With -mes0 put read only data in the .frodata section
@ 2015-06-08 12:07 Nick Clifton
2015-06-08 17:46 ` DJ Delorie
0 siblings, 1 reply; 2+ messages in thread
From: Nick Clifton @ 2015-06-08 12:07 UTC (permalink / raw)
To: dj; +Cc: gcc-patches
Hi DJ,
The -mes0 option for the RL78 backend should put read only data into a
special .frodata section, but unfortunately my recent update to the
rl78_select_section function broke this behaviour. Below is a patch
to fix this. Tested with no regressions on an rl78-elf toolchain.
OK to apply ?
Cheers
Nick
gcc/ChangeLog
2015-06-08 Nick Clifton <nickc@redhat.com>
* config/rl78/rl78.c (rl78_select_section): With -mes0 put read
only data into the .frodata section.
Index: config/rl78/rl78.c
===================================================================
--- config/rl78/rl78.c (revision 224218)
+++ config/rl78/rl78.c (working copy)
@@ -4423,7 +4423,7 @@
}
if (readonly)
- return readonly_data_section;
+ return TARGET_ES0 ? frodata_section : readonly_data_section;
switch (categorize_decl_for_section (decl, reloc))
{
@@ -4430,7 +4430,7 @@
case SECCAT_TEXT: return text_section;
case SECCAT_DATA: return data_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:
return default_select_section (decl, reloc, align);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: RFA: RL78: With -mes0 put read only data in the .frodata section
2015-06-08 12:07 RFA: RL78: With -mes0 put read only data in the .frodata section Nick Clifton
@ 2015-06-08 17:46 ` DJ Delorie
0 siblings, 0 replies; 2+ messages in thread
From: DJ Delorie @ 2015-06-08 17:46 UTC (permalink / raw)
To: Nick Clifton; +Cc: gcc-patches
Ok. Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-08 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-08 12:07 RFA: RL78: With -mes0 put read only data in the .frodata section Nick Clifton
2015-06-08 17:46 ` DJ Delorie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).