Nick Clifton - Re: RFA: Fix FRV switch table generation in PIC mode (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.
It is not these relocations which are not working (they do). It is the fact that the generated switch table code uses the .L8 label as the address of the switch table in RAM, but currently the .L8 label is in the .text section and the table itself is in the .rodata section....
Yes, I realize that. But if you take away *all* of the special handling, including the JUMP_TABLES_IN_TEXT_SECTION,
does the program still work?
Basically, why the motivation for JUMP_TABLES_IN_TEXT_SECTION? It looks left over from a copy from mips16 code, where there was in fact a justification.