FreeBSD Bugzilla – Attachment 155564 Details for
Bug 198611
Libraries build with libtool are no longer stripped with elftoolchain strip
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ELF tool chain update to r3185
elftoolchain-3179-3185.diff (text/plain), 13.13 KB, created by
Ed Maste
on 2015-04-13 19:29:41 UTC
(
hide
)
Description:
ELF tool chain update to r3185
Filename:
MIME Type:
Creator:
Ed Maste
Created:
2015-04-13 19:29:41 UTC
Size:
13.13 KB
patch
obsolete
>commit 0a558db594fc8bad963dc6be891f38849ffcc25b >Author: Ed Maste <emaste@freebsd.org> >Date: Mon Apr 13 15:26:54 2015 -0400 > > Update to ELF Tool Chain r3185 > >diff --git a/contrib/elftoolchain/addr2line/addr2line.1 b/contrib/elftoolchain/addr2line/addr2line.1 >index 98edda5..0597ab2 100644 >--- a/contrib/elftoolchain/addr2line/addr2line.1 >+++ b/contrib/elftoolchain/addr2line/addr2line.1 >@@ -99,7 +99,7 @@ Print a help message. > Print a version identifier and exit. > .El > .Sh OUTPUT FORMAT >-If the >+If the > .Fl f > option was not specified, > .Nm >diff --git a/contrib/elftoolchain/elfcopy/sections.c b/contrib/elftoolchain/elfcopy/sections.c >index 077bb74..b357dc3 100644 >--- a/contrib/elftoolchain/elfcopy/sections.c >+++ b/contrib/elftoolchain/elfcopy/sections.c >@@ -1223,6 +1223,14 @@ update_shdr(struct elfcopy *ecp, int update_link) > osh.sh_info != 0) > osh.sh_info = ecp->secndx[osh.sh_info]; > >+ /* >+ * sh_info of SHT_GROUP section needs to point to the correct >+ * string in the symbol table. >+ */ >+ if (s->type == SHT_GROUP && (ecp->flags & SYMTAB_EXIST) && >+ (ecp->flags & SYMTAB_INTACT) == 0) >+ osh.sh_info = ecp->symndx[osh.sh_info]; >+ > if (!gelf_update_shdr(s->os, &osh)) > errx(EXIT_FAILURE, "gelf_update_shdr() failed: %s", > elf_errmsg(-1)); >diff --git a/contrib/elftoolchain/libdwarf/dwarf.3 b/contrib/elftoolchain/libdwarf/dwarf.3 >index 5363034..9eb0784 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf.3 >@@ -44,7 +44,7 @@ is defined by the DWARF standard, see > .Xr dwarf 4 . > .Pp > The >-.Xr DWARF 3 >+.Xr DWARF 3 > API has two parts: > .Bl -bullet > .It >@@ -349,7 +349,7 @@ Retrieve a debugging information entry given an offset. > .It Fn dwarf_siblingof , Fn dwarf_siblingof_b > Retrieve the sibling descriptor for a debugging information entry. > .It Fn dwarf_srclang >-Retrive the source language attribute for a debugging information >+Retrieve the source language attribute for a debugging information > entry. > .It Fn dwarf_tag > Retrieve the tag for a debugging information entry. >diff --git a/contrib/elftoolchain/libdwarf/dwarf_add_line_entry.3 b/contrib/elftoolchain/libdwarf/dwarf_add_line_entry.3 >index 2237717..6651371 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_add_line_entry.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_add_line_entry.3 >@@ -66,7 +66,8 @@ Valid source file indices are those returned by the function > .Pp > Argument > .Ar off >-specifies a relocatable program address. The ELF symbol to be used >+specifies a relocatable program address. >+The ELF symbol to be used > for relocation is set by a prior call to the function > .Xr dwarf_lne_set_address 3 . > .Pp >diff --git a/contrib/elftoolchain/libdwarf/dwarf_def_macro.3 b/contrib/elftoolchain/libdwarf/dwarf_def_macro.3 >index d4849b1..314de8f 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_def_macro.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_def_macro.3 >@@ -72,7 +72,7 @@ Argument > .Ar value > should point to a NUL-terminated string containing the value > of the macro. >-If the macro doesn't have a value, argument >+If the macro does not have a value, argument > .Ar value > should be set to NULL. > .Pp >diff --git a/contrib/elftoolchain/libdwarf/dwarf_expand_frame_instructions.3 b/contrib/elftoolchain/libdwarf/dwarf_expand_frame_instructions.3 >index eaeb320..c68a709 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_expand_frame_instructions.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_expand_frame_instructions.3 >@@ -29,7 +29,7 @@ > .Dt DWARF_EXPAND_FRAME_INSTRUCTIONS 3 > .Sh NAME > .Nm dwarf_expand_frame_instructions >-.Nd expand frame instructions >+.Nd expand frame instructions > .Sh LIBRARY > .Lb libdwarf > .Sh SYNOPSIS >diff --git a/contrib/elftoolchain/libdwarf/dwarf_formblock.3 b/contrib/elftoolchain/libdwarf/dwarf_formblock.3 >index 4ae824f..a9f5dfc 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_formblock.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_formblock.3 >@@ -69,7 +69,7 @@ the DWARF(3) library. > The application should not attempt to free this memory > area. > Portable code may indicate that the memory area is to be freed by >-by using >+using > .Xr dwarf_dealloc 3 . > .Sh RETURN VALUES > Function >diff --git a/contrib/elftoolchain/libdwarf/dwarf_formflag.3 b/contrib/elftoolchain/libdwarf/dwarf_formflag.3 >index 93d5902..9828d29 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_formflag.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_formflag.3 >@@ -58,7 +58,7 @@ or > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > Function > .Fn dwarf_formflag >diff --git a/contrib/elftoolchain/libdwarf/dwarf_formref.3 b/contrib/elftoolchain/libdwarf/dwarf_formref.3 >index 9e3458f..64b2a9a 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_formref.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_formref.3 >@@ -101,7 +101,7 @@ ELF section. > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > These functions return > .Dv DW_DLV_OK >diff --git a/contrib/elftoolchain/libdwarf/dwarf_formsig8.3 b/contrib/elftoolchain/libdwarf/dwarf_formsig8.3 >index 5445324..6768e30 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_formsig8.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_formsig8.3 >@@ -56,7 +56,7 @@ must be > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > Function > .Fn dwarf_formsig8 >diff --git a/contrib/elftoolchain/libdwarf/dwarf_formudata.3 b/contrib/elftoolchain/libdwarf/dwarf_formudata.3 >index f95fdea..8c7d8a3 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_formudata.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_formudata.3 >@@ -88,7 +88,7 @@ and > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > These functions return > .Dv DW_DLV_OK >diff --git a/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_all_regs.3 b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_all_regs.3 >index 014d138..bc2be08 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_all_regs.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_all_regs.3 >@@ -90,7 +90,8 @@ typedef struct { > For each of the register rules returned, > the > .Va dw_offset_relevant >-field is set to 1 if the register rule has a offset value. The >+field is set to 1 if the register rule has a offset value. >+The > .Va dw_regnum > field is set to the register number associated with the regsiter rule. > The >diff --git a/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_reg.3 b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_reg.3 >index 3d46806..322ec59 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_reg.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_get_fde_info_for_reg.3 >@@ -99,7 +99,7 @@ counter address associated with the register rule found. > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Ss COMPATIBILITY > Function > .Fn dwarf_get_fde_info_for_reg >diff --git a/contrib/elftoolchain/libdwarf/dwarf_get_ranges.3 b/contrib/elftoolchain/libdwarf/dwarf_get_ranges.3 >index 37847a1..2caadb1 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_get_ranges.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_get_ranges.3 >@@ -137,7 +137,7 @@ For this type of entry, the field > .Va dwr_addr1 > is the value of the largest representable address offset, and > .Va dwr_addr2 >-is a base address for the begining and ending address offsets of >+is a base address for the beginning and ending address offsets of > subsequent address range entries in the list. > .It Dv DW_RANGES_END > An end of list mark. >diff --git a/contrib/elftoolchain/libdwarf/dwarf_hasattr.3 b/contrib/elftoolchain/libdwarf/dwarf_hasattr.3 >index 5875848..c913d4e 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_hasattr.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_hasattr.3 >@@ -64,7 +64,7 @@ If the named attribute is not present, a zero is written instead. > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > On success, function > .Fn dwarf_hasattr >diff --git a/contrib/elftoolchain/libdwarf/dwarf_next_cu_header.3 b/contrib/elftoolchain/libdwarf/dwarf_next_cu_header.3 >index f172322..c8aacf2 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_next_cu_header.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_next_cu_header.3 >@@ -220,8 +220,7 @@ unit in the section. > .Ss Iterating Through Type Units in a Debug Context > When a DWARF debug context is allocated using > .Xr dwarf_init 3 , >-an internal pointer assoicated with the context will point to the >-fisrt >+an internal pointer associated with the context will point to the first > .Dq \&.debug_types > section found in the debug object. > The first call to function >diff --git a/contrib/elftoolchain/libdwarf/dwarf_producer_init.3 b/contrib/elftoolchain/libdwarf/dwarf_producer_init.3 >index 717335e..91f9250 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_producer_init.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_producer_init.3 >@@ -58,7 +58,7 @@ descriptor representing a DWARF producer instance. > .Pp > The argument > .Ar errhand >-should contain the adddress of a function to be called in case of an >+should contain the address of a function to be called in case of an > error. > If this argument is > .Dv NULL , >diff --git a/contrib/elftoolchain/libdwarf/dwarf_whatattr.3 b/contrib/elftoolchain/libdwarf/dwarf_whatattr.3 >index a975d3e..10d93d7 100644 >--- a/contrib/elftoolchain/libdwarf/dwarf_whatattr.3 >+++ b/contrib/elftoolchain/libdwarf/dwarf_whatattr.3 >@@ -51,7 +51,7 @@ and writes it to the location pointed to by argument > If argument > .Ar err > is not NULL, it will be used to return an error descriptor in case >-of an error. >+of an error. > .Sh RETURN VALUES > On success, function > .Fn dwarf_whatattr >diff --git a/contrib/elftoolchain/libelf/elf.3 b/contrib/elftoolchain/libelf/elf.3 >index 618b4f7..99149ff 100644 >--- a/contrib/elftoolchain/libelf/elf.3 >+++ b/contrib/elftoolchain/libelf/elf.3 >@@ -555,7 +555,7 @@ flag on an ELF descriptor using > .Xr elf_flagelf 3 , > following which the library will use the data offsets and alignments > specified by the application when laying out the file. >-Application control of file layout is described further in the >+Application control of file layout is described further in the > .Xr elf_update 3 > manual page. > .Pp >diff --git a/contrib/elftoolchain/libelf/elf_begin.3 b/contrib/elftoolchain/libelf/elf_begin.3 >index 960456a..0f4696f 100644 >--- a/contrib/elftoolchain/libelf/elf_begin.3 >+++ b/contrib/elftoolchain/libelf/elf_begin.3 >@@ -272,7 +272,7 @@ was created. > .It Bq Er ELF_E_ARGUMENT > An > .Xr ar 1 >-archive was opened with with >+archive was opened with > .Ar cmd > set to > .Dv ELF_C_RDWR . >diff --git a/contrib/elftoolchain/libelf/elf_getdata.3 b/contrib/elftoolchain/libelf/elf_getdata.3 >index 8816a5a..cae0367 100644 >--- a/contrib/elftoolchain/libelf/elf_getdata.3 >+++ b/contrib/elftoolchain/libelf/elf_getdata.3 >@@ -174,7 +174,7 @@ These functions return a valid pointer to a data descriptor if successful, or > NULL if an error occurs. > .Sh ERRORS > These functions may fail with the following errors: >-.Bl -tag -width "[ELF_E_RESOURCE]" >+.Bl -tag -width "[ELF_E_RESOURCE]" > .It Bq Er ELF_E_ARGUMENT > Either of the arguments > .Ar scn >diff --git a/contrib/elftoolchain/libelftc/elftc_demangle.3 b/contrib/elftoolchain/libelftc/elftc_demangle.3 >index bbe67e5..28cd6a9 100644 >--- a/contrib/elftoolchain/libelftc/elftc_demangle.3 >+++ b/contrib/elftoolchain/libelftc/elftc_demangle.3 >@@ -88,7 +88,7 @@ To decode a name that uses an unknown encoding style use: > .Bd -literal -offset indent > char buffer[1024]; > const char *funcname; >- >+ > funcname = ...; /* points to string to be demangled */ > if (elftc_demangle(funcname, buffer, sizeof(buffer), 0) == 0) > printf("Demangled name: %\\n", buffer); >diff --git a/contrib/elftoolchain/libelftc/elftc_symbol_table_create.3 b/contrib/elftoolchain/libelftc/elftc_symbol_table_create.3 >index 3ff2c35..53a0773 100644 >--- a/contrib/elftoolchain/libelftc/elftc_symbol_table_create.3 >+++ b/contrib/elftoolchain/libelftc/elftc_symbol_table_create.3 >@@ -224,7 +224,7 @@ should point to a location that will be updated with one of > the following values: > .Bl -tag -width indent -compact -offset indent > .It Dv ELFTC_INSERT_ERROR >-An error occured during insertion of the symbol. >+An error occurred during insertion of the symbol. > .It Dv ELFTC_INSERT_EXISTING > The name in argument > .Ar symbolname >diff --git a/contrib/elftoolchain/size/size.c b/contrib/elftoolchain/size/size.c >index 93133a9..6cb30e1 100644 >--- a/contrib/elftoolchain/size/size.c >+++ b/contrib/elftoolchain/size/size.c >@@ -604,7 +604,7 @@ handle_elf(char const *name) > arhdr->ar_name); > continue; > } >- /* Core dumps are handled seperately */ >+ /* Core dumps are handled separately */ > if (elfhdr.e_shnum == 0 && elfhdr.e_type == ET_CORE) { > exit_code = handle_core(name, elf, &elfhdr); > (void) elf_end(elf); >diff --git a/lib/libelftc/elftc_version.c b/lib/libelftc/elftc_version.c >index 7a8c96a..545a04b 100644 >--- a/lib/libelftc/elftc_version.c >+++ b/lib/libelftc/elftc_version.c >@@ -6,5 +6,5 @@ > const char * > elftc_version(void) > { >- return "elftoolchain r3179M"; >+ return "elftoolchain r3185M"; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198611
:
154393
|
155564
|
156881
|
157132
|
157135
|
157136
|
157201