https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92902

--- Comment #5 from Jean-Christophe Dubois <gcc at tribudubois dot net> ---
I guess JUMP_TABLES_IN_TEXT_SECTION is supposed to mean that the "jump tables"
should not be put in the text section.

However something is wrong then because gcc 9 (and maybe previous) is putting
the jump table as a "subsection" of the text section in the generated assembly
code (therefore it is part of the text section).

I am attaching a generated assembly file where "jump tables" are generated and
declared as subsection of the text section. In this file you can for example
look at the L87 jump table which is used by the tfp_format function (this is
the first jump table that triggered an exception in my test case).

So assuming the intend is to put the jump table in the rodata section,
something seems to be broken in the build then.

Reply via email to