This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Fix FRV switch table generation in PIC mode


Hi Richard,

On Wed, Feb 21, 2007 at 03:27:14PM +0000, Nick Clifton wrote:
    .L8:
        .word .L4-.L8

Is there any reason why this pc-relative relocation doesn't work from the .rodata section?

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....


Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]