From 7c2c4aa12f4931fb79f94d787ef60e88960bb2a7 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 4 Jun 2016 16:46:58 -0400 Subject: [PATCH] xtensa: prototype xtensa_make_property_section in elf/xtensa.h There's no reason to have multiple prototypes for the same function. include/ChangeLog: 2016-06-25 Trevor Saunders * elf/xtensa.h (xtensa_make_property_section): New prototype. gas/ChangeLog: 2016-06-25 Trevor Saunders * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype. bfd/ChangeLog: 2016-06-25 Trevor Saunders * elf32-xtensa.c (xtensa_make_property_section): Remove prototype. --- bfd/ChangeLog | 4 ++++ bfd/elf32-xtensa.c | 1 - gas/ChangeLog | 4 ++++ gas/config/tc-xtensa.c | 4 ---- include/ChangeLog | 4 ++++ include/elf/xtensa.h | 2 ++ 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2cf8b27e9da..4e2d2aef205 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2016-06-25 Trevor Saunders + + * elf32-xtensa.c (xtensa_make_property_section): Remove prototype. + 2016-06-24 John Baldwin * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PROCSTAT_AUXV diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index af9618dbfc2..41506f431d8 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -110,7 +110,6 @@ static bfd_boolean xtensa_is_proptable_section (asection *); static int internal_reloc_compare (const void *, const void *); static int internal_reloc_matches (const void *, const void *); static asection *xtensa_get_property_section (asection *, const char *); -extern asection *xtensa_make_property_section (asection *, const char *); static flagword xtensa_get_property_predef_flags (asection *); /* Other functions called directly by the linker. */ diff --git a/gas/ChangeLog b/gas/ChangeLog index 1c3e80a5780..d7246f824cf 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2016-06-25 Trevor Saunders + + * config/tc-xtensa.c (xtensa_make_property_section): Remove prototype. + 2016-06-24 Maciej W. Rozycki * config/tc-mips.c (append_insn): Use any `O_symbol' expression diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index d2a356734dd..5840135157f 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -526,10 +526,6 @@ static void xtensa_switch_section_emit_state (emit_state *, segT, subsegT); static void xtensa_restore_emit_state (emit_state *); static segT cache_literal_section (bfd_boolean); -/* Import from elf32-xtensa.c in BFD library. */ - -extern asection *xtensa_make_property_section (asection *, const char *); - /* op_placement_info functions. */ static void init_op_placement_info_table (void); diff --git a/include/ChangeLog b/include/ChangeLog index e57acb4dfe2..ecfac716419 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2016-06-25 Trevor Saunders + + * elf/xtensa.h (xtensa_make_property_section): New prototype. + 2016-06-24 John Baldwin * elf/common.h (AT_FREEBSD_EXECPATH, AT_FREEBSD_CANARY) diff --git a/include/elf/xtensa.h b/include/elf/xtensa.h index ca178f5f3bd..be55cd7c75b 100644 --- a/include/elf/xtensa.h +++ b/include/elf/xtensa.h @@ -209,6 +209,8 @@ typedef struct property_table_entry_t #define XTENSA_PROP_INSN_ABSLIT 0x00020000 +extern asection *xtensa_make_property_section (asection *, const char *); + #ifdef __cplusplus } #endif -- 2.39.5