Re: fno-jump-tables question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jorge PEREZ <jorge.perez@xxxxxxxx> writes:

> Ian Lance Taylor wrote:
>> (Appending reply to the correct thread.)
>>
>> When jump tables are used, their location depends on the target.  They
>> are not generally placed in a special section name.  On some targets
>> they must be placed in the .text section.  When possible they are placed
>> in the .rodata section, or whichever section is used to hold read-only
>> data.
>>   
>
> Thanks for the reply.
>
> I'm interested on the SPARC V8 target. I know the jump-table is being
> placed at the beginning of .text in GCC4.5.1. I checked the sources
> related to the -fno-jump-tables but didn't find anything useful. If
> anyone can give me a hint to find the way to place it somewhere else
> that would be of great help. Thanks

As far as I know there isn't any way to change where jump tables are
placed without modifying the source code and rebuilding the compiler.

If you rebuild the compiler, see JUMP_TABLES_IN_TEXT_SECTION.
Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux