https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #9 from Senthil Kumar Selvaraj <senthil.thecoder at gmail dot com> --- For both kinds of invocation (mergeable constants and jump tables), the decl passed is current_function_decl. And that looks right from the documentation for the target hook. I'll submit another patch for trunk that adds a new SECCAT_RODATA_JUMPTABLE to enum section_category, and then passes the section_category down to the target hook. avr_asm_function_rodata_section can then choose to return the correct section based on the category. What do you think?