/*
Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved.
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Further, this software is distributed without any warranty that it is
free of the rightful claim of any third person regarding infringement
or the like. Any license provided herein, whether implied or
otherwise, applies only to this software file. Patent licenses, if
any, provided herein do not apply to combinations of this program with
other software, or any other product whatsoever.
You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
USA.
Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane,
Mountain View, CA 94043, or:
For further information regarding this notice, see:
*/
#include "config.h"
#include "libdwarfdefs.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_ELFACCESS_H
#include <elfaccess.h>
#endif
#include "pro_incl.h"
#include "pro_section.h"
/*
This function adds another type name to the
list of type names for the given Dwarf_P_Debug.
It returns 0 on error, and 1 otherwise.
*/
{
return
}
/*
The following is the generic 'add a simple name entry'
for any of the simple name sections.
See enum dwarf_sn_kind in pro_opaque.h
*/
char *entry_name,
enum dwarf_sn_kind entrykind,
Dwarf_Error * error)
{
char *name;
int uword_size;
return (0);
}
return (0);
}
sizeof(struct Dwarf_P_Simple_nameentry_s));
return (0);
}
return (0);
}
else {
}
return (1);
}
/*
_dwarf_transform_simplename_to_disk writes
".rel.debug_pubnames",
".rel.debug_funcnames", sgi extension
".rel.debug_typenames", sgi extension
".rel.debug_varnames", sgi extension
".rel.debug_weaknames", sgi extension
to disk.
section_index indexes one of those sections.
entrykind is one of those 'kind's.
*/
int
_dwarf_transform_simplename_to_disk(Dwarf_P_Debug dbg, enum dwarf_sn_kind entrykind, int section_index, /* in
de_elf_sects
etc
*/
Dwarf_Error * error)
{
/* Used to fill in 0. */
/* Used to scan the section data buffers. */
*/
/* ***** BEGIN CODE ***** */
debug_info_size = 0;
/* We want the size of the .debug_info section for this CU
because the dwarf spec requires us to output it below so we
look for it specifically. */
}
}
/* Size of the .debug_typenames (or similar) section header. */
length
field. */
sizeof(Dwarf_Half) + /* Size of version field. */
uword_size + /* Size of .debug_info offset. */
uword_size; /* Size of .debug_names. */
/* add in the content size */
/* Size of the last 0 offset. */
/* Now we know how long the entire section is */
if (stream_bytes == NULL) {
return (0);
}
if (extension_size) {
(const void *) &x, sizeof(x), extension_size);
}
/* Write the adjusted length of .debug_*names section. */
(const void *) &adjusted_length,
sizeof(adjusted_length), uword_size);
/* Write the version as 2 bytes. */
{
(const void *) &verstamp,
sizeof(verstamp), sizeof(Dwarf_Half));
cur_stream_bytes_ptr += sizeof(Dwarf_Half);
}
/* Write the offset of the compile-unit. */
(const void *) &big_zero,
sizeof(big_zero), uword_size);
/* now create the relocation for the compile_unit offset */
{
sizeof(Dwarf_Half)
/* r_offset */
,
/* debug_info section name symbol */
{
return (0);
}
}
}
/* Write the size of .debug_info section. */
(const void *) &debug_info_size,
sizeof(debug_info_size), uword_size);
for (nameentry = nameentry_original;
/* Copy offset of die from start of compile-unit. */
/* Copy the type name. */
}
(const void *) &big_zero,
sizeof(big_zero), uword_size);
return (int) dbg->de_n_debug_sect;
}