https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92902
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|jump tables are put in the |jump tables are put into |.text section |the text section --- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > I cannot think of any specific reason why the jump tables were put into the > text section. I even tried to consider relocation ramifications. Yes, relocation considerations quickly come to mind. Thanks in any case. > Maybe this makes GOT OP linker optimizations more likely when -fPIC? I wonder whether this wouldn't stem from limitations of the Sun assembler or somesuch: in PIC mode, this would generate differences between labels from different sections, so relocations need to be generated by the assembler.