aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorHaochen Gui <guihaoc@gcc.gnu.org>2020-11-17 13:52:15 -0600
committerHaochen Gui <guihaoc@gcc.gnu.org>2020-11-17 13:53:14 +0800
commitd5ac0401eb128bf3dadec943741dfde7c499e49a (patch)
tree9f7cce8cbdbd8438af547d8584dea1b25ba77185 /gcc/gcc.c
parent287cc750b0887e86cb309d976b17c7ee95f7ad48 (diff)
downloadgcc-d5ac0401eb128bf3dadec943741dfde7c499e49a.zip
gcc-d5ac0401eb128bf3dadec943741dfde7c499e49a.tar.gz
gcc-d5ac0401eb128bf3dadec943741dfde7c499e49a.tar.bz2
Relocatable read-only section support for absolute jump table
This patch puts absolute jump tables into a relocatable read-only section if they are on ELF target and relocation is supported. gcc/ChangeLog: * final.c (final_scan_insn_1): Set jump table relocatable as the second argument of targetm.asm_out.function_rodata_section. * output.h (default_function_rodata_section, default_no_function_rodata_section): Add the second argument to the declarations. * target.def (function_rodata_section): Change the doc and add the second argument. * doc/tm.texi: Regenerate. * varasm.c (jumptable_relocatable): Implement. (default_function_rodata_section): Add the second argument and the support for relocatable read only sections. (default_no_function_rodata_section): Add the second argument. (function_mergeable_rodata_prefix): Set the second argument to false. * config/mips/mips.c (mips_function_rodata_section): Add the second arugment and set it to false. * config/s390/s390.c (targetm.asm_out.function_rodata_section): Set the second argument to false. * config/s390/s390.md: Likewise.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions