]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdwfl: Make __libdwfl_addrsym a static function in dwfl_module_addrsym.c
authorMark Wielaard <mark@klomp.org>
Mon, 4 Jun 2018 20:23:48 +0000 (22:23 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 09:56:37 +0000 (11:56 +0200)
__libdwfl_addrsym is only used in the dwfl_module_addrsym.c source.
There is no need to mark this as a (shared) internal function.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/dwfl_module_addrsym.c
libdwfl/libdwflP.h

index 34aa07d1f2509683a54d4fa4673410cff3b42cc8..acb4236a3bb4091973809128a6c8c69cdee3eea0 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-04  Mark Wielaard  <mark@klomp.org>
+
+       * libdwflP.h (__libdwfl_addrsym): Remove function declaration.
+       * dwfl_module_addrsym.c (__libdwfl_addrsym): Make a static function.
+
 2018-05-27  Mark Wielaard  <mark@klomp.org>
 
        * relocate.c (__libdwfl_relocate): Always call relocate_section with
index db302e63676f0fee1e12f6bd545a8c292e519131..2336b6024b89d3fd4724f40f54d1bc25ead71a5b 100644 (file)
@@ -235,9 +235,12 @@ search_table (struct search_state *state, int start, int end)
 }
 
 /* Returns the name of the symbol "closest" to ADDR.
-   Never returns symbols at addresses above ADDR.  */
-const char *
-internal_function
+   Never returns symbols at addresses above ADDR.
+
+   Wrapper for old dwfl_module_addrsym and new dwfl_module_addrinfo.
+   adjust_st_value set to true returns adjusted SYM st_value, set to false
+   it will not adjust SYM at all, but does match against resolved values.   */
+static const char *
 __libdwfl_addrsym (Dwfl_Module *_mod, GElf_Addr _addr, GElf_Off *off,
                   GElf_Sym *_closest_sym, GElf_Word *shndxp,
                   Elf **elfp, Dwarf_Addr *biasp, bool _adjust_st_value)
index 362987110d5439b766632a640d620a9aea6a66e2..31e6e19051ccfde69865abbe926b946d10a256df 100644 (file)
@@ -463,15 +463,6 @@ extern const char *__libdwfl_getsym (Dwfl_Module *mod, int ndx, GElf_Sym *sym,
                                     bool *resolved, bool adjust_st_value)
   internal_function;
 
-/* Internal wrapper for old dwfl_module_addrsym and new dwfl_module_addrinfo.
-   adjust_st_value set to true returns adjusted SYM st_value, set to false
-   it will not adjust SYM at all, but does match against resolved values. */
-extern const char *__libdwfl_addrsym (Dwfl_Module *mod, GElf_Addr addr,
-                                     GElf_Off *off, GElf_Sym *sym,
-                                     GElf_Word *shndxp, Elf **elfp,
-                                     Dwarf_Addr *bias,
-                                     bool adjust_st_value) internal_function;
-
 extern void __libdwfl_module_free (Dwfl_Module *mod) internal_function;
 
 /* Find the main ELF file, update MOD->elferr and/or MOD->main.elf.  */