Re: fno-jump-tables question

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

 



Jorge PEREZ <jorge.perez@xxxxxxxx> writes:

> The -fno-jump-tables option to GCC removes the jump tables as it name
> indicates, which I think is mostly relevant for switch cases.
>
> I was wondering if anybody knows the name of the section (e.g.
> ".text.jump-tables" or something like that?) where such jump tables are
> placed when the option is not used, so I can place it arbitrarily via
> the linker script, for example in an external memory.

When sending a new question to gcc-help, please always send a new
message.  Please do not reply to an existing message.  When you reply to
an existing message your message will be placed incorrectly by threading
e-mail readers.  Thanks.

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.

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