This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix FRV switch table generation in PIC mode
On Thu, Feb 22, 2007 at 07:58:22AM +0000, Nick Clifton wrote:
> 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.
r~