LCOV - code coverage report
Current view: top level - backends - m68k_init.c (source / functions) Hit Total Coverage
Test: elfutils-0.191 Lines: 11 11 100.0 %
Date: 2024-07-23 19:52:03 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* Initialization of M68K specific backend library.
       2                 :            :    This file is part of elfutils.
       3                 :            : 
       4                 :            :    This file is free software; you can redistribute it and/or modify
       5                 :            :    it under the terms of either
       6                 :            : 
       7                 :            :      * the GNU Lesser General Public License as published by the Free
       8                 :            :        Software Foundation; either version 3 of the License, or (at
       9                 :            :        your option) any later version
      10                 :            : 
      11                 :            :    or
      12                 :            : 
      13                 :            :      * the GNU General Public License as published by the Free
      14                 :            :        Software Foundation; either version 2 of the License, or (at
      15                 :            :        your option) any later version
      16                 :            : 
      17                 :            :    or both in parallel, as here.
      18                 :            : 
      19                 :            :    elfutils is distributed in the hope that it will be useful, but
      20                 :            :    WITHOUT ANY WARRANTY; without even the implied warranty of
      21                 :            :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      22                 :            :    General Public License for more details.
      23                 :            : 
      24                 :            :    You should have received copies of the GNU General Public License and
      25                 :            :    the GNU Lesser General Public License along with this program.  If
      26                 :            :    not, see <http://www.gnu.org/licenses/>.  */
      27                 :            : 
      28                 :            : #ifdef HAVE_CONFIG_H
      29                 :            : # include <config.h>
      30                 :            : #endif
      31                 :            : 
      32                 :            : #define BACKEND         m68k_
      33                 :            : #define RELOC_PREFIX    R_68K_
      34                 :            : #include "libebl_CPU.h"
      35                 :            : 
      36                 :            : /* This defines the common reloc hooks based on m68k_reloc.def.  */
      37                 :            : #include "common-reloc.c"
      38                 :            : 
      39                 :            : 
      40                 :            : Ebl *
      41                 :         28 : m68k_init (Elf *elf __attribute__ ((unused)),
      42                 :            :            GElf_Half machine __attribute__ ((unused)),
      43                 :            :            Ebl *eh)
      44                 :            : {
      45                 :            :   /* We handle it.  */
      46                 :         28 :   m68k_init_reloc (eh);
      47                 :         28 :   HOOK (eh, gotpc_reloc_check);
      48                 :         28 :   HOOK (eh, reloc_simple_type);
      49                 :         28 :   HOOK (eh, return_value_location);
      50                 :         28 :   HOOK (eh, register_info);
      51                 :         28 :   HOOK (eh, core_note);
      52                 :         28 :   HOOK (eh, abi_cfi);
      53                 :            :   /* gcc/config/ #define DWARF_FRAME_REGISTERS.  */
      54                 :         28 :   eh->frame_nregs = 25;
      55                 :         28 :   HOOK (eh, set_initial_registers_tid);
      56                 :            : 
      57                 :         28 :   return eh;
      58                 :            : }

Generated by: LCOV version 1.16