summaryrefslogtreecommitdiff
path: root/elfutils/libdw/dwarf_begin_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/libdw/dwarf_begin_elf.c')
-rw-r--r--elfutils/libdw/dwarf_begin_elf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/elfutils/libdw/dwarf_begin_elf.c b/elfutils/libdw/dwarf_begin_elf.c
index a9aa197c..a02d509f 100644
--- a/elfutils/libdw/dwarf_begin_elf.c
+++ b/elfutils/libdw/dwarf_begin_elf.c
@@ -1,5 +1,5 @@
/* Create descriptor from ELF descriptor for processing file.
- Copyright (C) 2002, 2003, 2004 Red Hat, Inc.
+ Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc.
Written by Ulrich Drepper <drepper@redhat.com>, 2002.
This program is Open Source software; you can redistribute it and/or
@@ -127,7 +127,7 @@ valid_p (Dwarf *result)
static Dwarf *
-global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd)
+global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr)
{
Elf_Scn *scn = NULL;
@@ -139,8 +139,7 @@ global_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd)
static Dwarf *
-scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Dwarf_Cmd cmd,
- Elf_Scn *scngrp)
+scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp)
{
/* SCNGRP is the section descriptor for a section group which might
contain debug sections. */
@@ -234,9 +233,9 @@ dwarf_begin_elf (elf, cmd, scngrp)
sections with the name are ignored. The DWARF specification
does not really say this is allowed. */
if (scngrp == NULL)
- return global_read (result, elf, ehdr, cmd);
+ return global_read (result, elf, ehdr);
else
- return scngrp_read (result, elf, ehdr, cmd, scngrp);
+ return scngrp_read (result, elf, ehdr, scngrp);
}
else if (cmd == DWARF_C_WRITE)
{
@@ -249,3 +248,4 @@ dwarf_begin_elf (elf, cmd, scngrp)
free (result);
return NULL;
}
+INTDEF(dwarf_begin_elf)