diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a141e0669f0..00d200ecf16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-30 John David Anglin + + * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers + without a DECL in .data.rel.ro.local. + 2020-01-30 Jakub Jelinek PR target/93494 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index fb7e2ee110f..24b88304637 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -9852,7 +9852,7 @@ pa_elf_select_rtx_section (machine_mode mode, rtx x, { tree decl = SYMBOL_REF_DECL (x); - if (DECL_P (decl) && DECL_COMDAT_GROUP (decl)) + if (!decl || (DECL_P (decl) && DECL_COMDAT_GROUP (decl))) return get_named_section (NULL, ".data.rel.ro.local", 1); }