View | Details | Raw Unified | Return to bug 198611 | Differences between
and this patch

Collapse All | Expand All

(-)b/contrib/elftoolchain/addr2line/addr2line.1 (-1 / +1 lines)
Lines 99-105 Print a help message. Link Here
99
Print a version identifier and exit.
99
Print a version identifier and exit.
100
.El
100
.El
101
.Sh OUTPUT FORMAT
101
.Sh OUTPUT FORMAT
102
If the 
102
If the
103
.Fl f
103
.Fl f
104
option was not specified,
104
option was not specified,
105
.Nm
105
.Nm
(-)b/contrib/elftoolchain/elfcopy/sections.c (+8 lines)
Lines 1223-1228 update_shdr(struct elfcopy *ecp, int update_link) Link Here
1223
		    osh.sh_info != 0)
1223
		    osh.sh_info != 0)
1224
			osh.sh_info = ecp->secndx[osh.sh_info];
1224
			osh.sh_info = ecp->secndx[osh.sh_info];
1225
1225
1226
		/*
1227
		 * sh_info of SHT_GROUP section needs to point to the correct
1228
		 * string in the symbol table.
1229
		 */
1230
		if (s->type == SHT_GROUP && (ecp->flags & SYMTAB_EXIST) &&
1231
		    (ecp->flags & SYMTAB_INTACT) == 0)
1232
			osh.sh_info = ecp->symndx[osh.sh_info];
1233
1226
		if (!gelf_update_shdr(s->os, &osh))
1234
		if (!gelf_update_shdr(s->os, &osh))
1227
			errx(EXIT_FAILURE, "gelf_update_shdr() failed: %s",
1235
			errx(EXIT_FAILURE, "gelf_update_shdr() failed: %s",
1228
			    elf_errmsg(-1));
1236
			    elf_errmsg(-1));
(-)b/contrib/elftoolchain/libdwarf/dwarf.3 (-2 / +2 lines)
Lines 44-50 is defined by the DWARF standard, see Link Here
44
.Xr dwarf 4 .
44
.Xr dwarf 4 .
45
.Pp
45
.Pp
46
The
46
The
47
.Xr DWARF 3 
47
.Xr DWARF 3
48
API has two parts:
48
API has two parts:
49
.Bl -bullet
49
.Bl -bullet
50
.It
50
.It
Lines 349-355 Retrieve a debugging information entry given an offset. Link Here
349
.It Fn dwarf_siblingof , Fn dwarf_siblingof_b
349
.It Fn dwarf_siblingof , Fn dwarf_siblingof_b
350
Retrieve the sibling descriptor for a debugging information entry.
350
Retrieve the sibling descriptor for a debugging information entry.
351
.It Fn dwarf_srclang
351
.It Fn dwarf_srclang
352
Retrive the source language attribute for a debugging information
352
Retrieve the source language attribute for a debugging information
353
entry.
353
entry.
354
.It Fn dwarf_tag
354
.It Fn dwarf_tag
355
Retrieve the tag for a debugging information entry.
355
Retrieve the tag for a debugging information entry.
(-)b/contrib/elftoolchain/libdwarf/dwarf_add_line_entry.3 (-1 / +2 lines)
Lines 66-72 Valid source file indices are those returned by the function Link Here
66
.Pp
66
.Pp
67
Argument
67
Argument
68
.Ar off
68
.Ar off
69
specifies a relocatable program address. The ELF symbol to be used
69
specifies a relocatable program address.
70
The ELF symbol to be used
70
for relocation is set by a prior call to the function
71
for relocation is set by a prior call to the function
71
.Xr dwarf_lne_set_address 3 .
72
.Xr dwarf_lne_set_address 3 .
72
.Pp
73
.Pp
(-)b/contrib/elftoolchain/libdwarf/dwarf_def_macro.3 (-1 / +1 lines)
Lines 72-78 Argument Link Here
72
.Ar value
72
.Ar value
73
should point to a NUL-terminated string containing the value
73
should point to a NUL-terminated string containing the value
74
of the macro.
74
of the macro.
75
If the macro doesn't have a value, argument
75
If the macro does not have a value, argument
76
.Ar value
76
.Ar value
77
should be set to NULL.
77
should be set to NULL.
78
.Pp
78
.Pp
(-)b/contrib/elftoolchain/libdwarf/dwarf_expand_frame_instructions.3 (-1 / +1 lines)
Lines 29-35 Link Here
29
.Dt DWARF_EXPAND_FRAME_INSTRUCTIONS 3
29
.Dt DWARF_EXPAND_FRAME_INSTRUCTIONS 3
30
.Sh NAME
30
.Sh NAME
31
.Nm dwarf_expand_frame_instructions
31
.Nm dwarf_expand_frame_instructions
32
.Nd expand frame instructions 
32
.Nd expand frame instructions
33
.Sh LIBRARY
33
.Sh LIBRARY
34
.Lb libdwarf
34
.Lb libdwarf
35
.Sh SYNOPSIS
35
.Sh SYNOPSIS
(-)b/contrib/elftoolchain/libdwarf/dwarf_formblock.3 (-1 / +1 lines)
Lines 69-75 the DWARF(3) library. Link Here
69
The application should not attempt to free this memory
69
The application should not attempt to free this memory
70
area.
70
area.
71
Portable code may indicate that the memory area is to be freed by
71
Portable code may indicate that the memory area is to be freed by
72
by using
72
using
73
.Xr dwarf_dealloc 3 .
73
.Xr dwarf_dealloc 3 .
74
.Sh RETURN VALUES
74
.Sh RETURN VALUES
75
Function
75
Function
(-)b/contrib/elftoolchain/libdwarf/dwarf_formflag.3 (-1 / +1 lines)
Lines 58-64 or Link Here
58
If argument
58
If argument
59
.Ar err
59
.Ar err
60
is not NULL, it will be used to return an error descriptor in case
60
is not NULL, it will be used to return an error descriptor in case
61
of an error. 
61
of an error.
62
.Sh RETURN VALUES
62
.Sh RETURN VALUES
63
Function
63
Function
64
.Fn dwarf_formflag
64
.Fn dwarf_formflag
(-)b/contrib/elftoolchain/libdwarf/dwarf_formref.3 (-1 / +1 lines)
Lines 101-107 ELF section. Link Here
101
If argument
101
If argument
102
.Ar err
102
.Ar err
103
is not NULL, it will be used to return an error descriptor in case
103
is not NULL, it will be used to return an error descriptor in case
104
of an error. 
104
of an error.
105
.Sh RETURN VALUES
105
.Sh RETURN VALUES
106
These functions return
106
These functions return
107
.Dv DW_DLV_OK
107
.Dv DW_DLV_OK
(-)b/contrib/elftoolchain/libdwarf/dwarf_formsig8.3 (-1 / +1 lines)
Lines 56-62 must be Link Here
56
If argument
56
If argument
57
.Ar err
57
.Ar err
58
is not NULL, it will be used to return an error descriptor in case
58
is not NULL, it will be used to return an error descriptor in case
59
of an error. 
59
of an error.
60
.Sh RETURN VALUES
60
.Sh RETURN VALUES
61
Function
61
Function
62
.Fn dwarf_formsig8
62
.Fn dwarf_formsig8
(-)b/contrib/elftoolchain/libdwarf/dwarf_formudata.3 (-1 / +1 lines)
Lines 88-94 and Link Here
88
If argument
88
If argument
89
.Ar err
89
.Ar err
90
is not NULL, it will be used to return an error descriptor in case
90
is not NULL, it will be used to return an error descriptor in case
91
of an error. 
91
of an error.
92
.Sh RETURN VALUES
92
.Sh RETURN VALUES
93
These functions return
93
These functions return
94
.Dv DW_DLV_OK
94
.Dv DW_DLV_OK
(-)b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_all_regs.3 (-1 / +2 lines)
Lines 90-96 typedef struct { Link Here
90
For each of the register rules returned,
90
For each of the register rules returned,
91
the
91
the
92
.Va dw_offset_relevant
92
.Va dw_offset_relevant
93
field is set to 1 if the register rule has a offset value. The
93
field is set to 1 if the register rule has a offset value.
94
The
94
.Va dw_regnum
95
.Va dw_regnum
95
field is set to the register number associated with the regsiter rule.
96
field is set to the register number associated with the regsiter rule.
96
The
97
The
(-)b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_reg.3 (-1 / +1 lines)
Lines 99-105 counter address associated with the register rule found. Link Here
99
If argument
99
If argument
100
.Ar err
100
.Ar err
101
is not NULL, it will be used to return an error descriptor in case
101
is not NULL, it will be used to return an error descriptor in case
102
of an error. 
102
of an error.
103
.Ss COMPATIBILITY
103
.Ss COMPATIBILITY
104
Function
104
Function
105
.Fn dwarf_get_fde_info_for_reg
105
.Fn dwarf_get_fde_info_for_reg
(-)b/contrib/elftoolchain/libdwarf/dwarf_get_ranges.3 (-1 / +1 lines)
Lines 137-143 For this type of entry, the field Link Here
137
.Va dwr_addr1
137
.Va dwr_addr1
138
is the value of the largest representable address offset, and
138
is the value of the largest representable address offset, and
139
.Va dwr_addr2
139
.Va dwr_addr2
140
is a base address for the begining and ending address offsets of
140
is a base address for the beginning and ending address offsets of
141
subsequent address range entries in the list.
141
subsequent address range entries in the list.
142
.It Dv DW_RANGES_END
142
.It Dv DW_RANGES_END
143
An end of list mark.
143
An end of list mark.
(-)b/contrib/elftoolchain/libdwarf/dwarf_hasattr.3 (-1 / +1 lines)
Lines 64-70 If the named attribute is not present, a zero is written instead. Link Here
64
If argument
64
If argument
65
.Ar err
65
.Ar err
66
is not NULL, it will be used to return an error descriptor in case
66
is not NULL, it will be used to return an error descriptor in case
67
of an error. 
67
of an error.
68
.Sh RETURN VALUES
68
.Sh RETURN VALUES
69
On success, function
69
On success, function
70
.Fn dwarf_hasattr
70
.Fn dwarf_hasattr
(-)b/contrib/elftoolchain/libdwarf/dwarf_next_cu_header.3 (-2 / +1 lines)
Lines 220-227 unit in the section. Link Here
220
.Ss Iterating Through Type Units in a Debug Context
220
.Ss Iterating Through Type Units in a Debug Context
221
When a DWARF debug context is allocated using
221
When a DWARF debug context is allocated using
222
.Xr dwarf_init 3 ,
222
.Xr dwarf_init 3 ,
223
an internal pointer assoicated with the context will point to the
223
an internal pointer associated with the context will point to the first
224
fisrt
225
.Dq \&.debug_types
224
.Dq \&.debug_types
226
section found in the debug object.
225
section found in the debug object.
227
The first call to function
226
The first call to function
(-)b/contrib/elftoolchain/libdwarf/dwarf_producer_init.3 (-1 / +1 lines)
Lines 58-64 descriptor representing a DWARF producer instance. Link Here
58
.Pp
58
.Pp
59
The argument
59
The argument
60
.Ar errhand
60
.Ar errhand
61
should contain the adddress of a function to be called in case of an
61
should contain the address of a function to be called in case of an
62
error.
62
error.
63
If this argument is
63
If this argument is
64
.Dv NULL ,
64
.Dv NULL ,
(-)b/contrib/elftoolchain/libdwarf/dwarf_whatattr.3 (-1 / +1 lines)
Lines 51-57 and writes it to the location pointed to by argument Link Here
51
If argument
51
If argument
52
.Ar err
52
.Ar err
53
is not NULL, it will be used to return an error descriptor in case
53
is not NULL, it will be used to return an error descriptor in case
54
of an error. 
54
of an error.
55
.Sh RETURN VALUES
55
.Sh RETURN VALUES
56
On success, function
56
On success, function
57
.Fn dwarf_whatattr
57
.Fn dwarf_whatattr
(-)b/contrib/elftoolchain/libelf/elf.3 (-1 / +1 lines)
Lines 555-561 flag on an ELF descriptor using Link Here
555
.Xr elf_flagelf 3 ,
555
.Xr elf_flagelf 3 ,
556
following which the library will use the data offsets and alignments
556
following which the library will use the data offsets and alignments
557
specified by the application when laying out the file.
557
specified by the application when laying out the file.
558
Application control of file layout is described further in the 
558
Application control of file layout is described further in the
559
.Xr elf_update 3
559
.Xr elf_update 3
560
manual page.
560
manual page.
561
.Pp
561
.Pp
(-)b/contrib/elftoolchain/libelf/elf_begin.3 (-1 / +1 lines)
Lines 272-278 was created. Link Here
272
.It Bq Er ELF_E_ARGUMENT
272
.It Bq Er ELF_E_ARGUMENT
273
An
273
An
274
.Xr ar 1
274
.Xr ar 1
275
archive was opened with with
275
archive was opened with
276
.Ar cmd
276
.Ar cmd
277
set to
277
set to
278
.Dv ELF_C_RDWR .
278
.Dv ELF_C_RDWR .
(-)b/contrib/elftoolchain/libelf/elf_getdata.3 (-1 / +1 lines)
Lines 174-180 These functions return a valid pointer to a data descriptor if successful, or Link Here
174
NULL if an error occurs.
174
NULL if an error occurs.
175
.Sh ERRORS
175
.Sh ERRORS
176
These functions may fail with the following errors:
176
These functions may fail with the following errors:
177
.Bl -tag -width "[ELF_E_RESOURCE]" 
177
.Bl -tag -width "[ELF_E_RESOURCE]"
178
.It Bq Er ELF_E_ARGUMENT
178
.It Bq Er ELF_E_ARGUMENT
179
Either of the arguments
179
Either of the arguments
180
.Ar scn
180
.Ar scn
(-)b/contrib/elftoolchain/libelftc/elftc_demangle.3 (-1 / +1 lines)
Lines 88-94 To decode a name that uses an unknown encoding style use: Link Here
88
.Bd -literal -offset indent
88
.Bd -literal -offset indent
89
char buffer[1024];
89
char buffer[1024];
90
const char *funcname;
90
const char *funcname;
91
	
91
92
funcname = ...; /* points to string to be demangled */
92
funcname = ...; /* points to string to be demangled */
93
if (elftc_demangle(funcname, buffer, sizeof(buffer), 0) == 0)
93
if (elftc_demangle(funcname, buffer, sizeof(buffer), 0) == 0)
94
	printf("Demangled name: %\\n", buffer);
94
	printf("Demangled name: %\\n", buffer);
(-)b/contrib/elftoolchain/libelftc/elftc_symbol_table_create.3 (-1 / +1 lines)
Lines 224-230 should point to a location that will be updated with one of Link Here
224
the following values:
224
the following values:
225
.Bl -tag -width indent -compact -offset indent
225
.Bl -tag -width indent -compact -offset indent
226
.It Dv ELFTC_INSERT_ERROR
226
.It Dv ELFTC_INSERT_ERROR
227
An error occured during insertion of the symbol.
227
An error occurred during insertion of the symbol.
228
.It Dv ELFTC_INSERT_EXISTING
228
.It Dv ELFTC_INSERT_EXISTING
229
The name in argument
229
The name in argument
230
.Ar symbolname
230
.Ar symbolname
(-)b/contrib/elftoolchain/size/size.c (-1 / +1 lines)
Lines 604-610 handle_elf(char const *name) Link Here
604
			    arhdr->ar_name);
604
			    arhdr->ar_name);
605
			continue;
605
			continue;
606
		}
606
		}
607
		/* Core dumps are handled seperately */
607
		/* Core dumps are handled separately */
608
		if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) {
608
		if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) {
609
			exit_code = handle_core(name, elf, &elfhdr);
609
			exit_code = handle_core(name, elf, &elfhdr);
610
			(void) elf_end(elf);
610
			(void) elf_end(elf);
(-)b/lib/libelftc/elftc_version.c (-1 / +1 lines)
Lines 6-10 Link Here
6
const char *
6
const char *
7
elftc_version(void)
7
elftc_version(void)
8
{
8
{
9
	return "elftoolchain r3179M";
9
	return "elftoolchain r3185M";
10
}
10
}

Return to bug 198611