Re: svn commit: r292120 - in head/contrib/elftoolchain: addr2line common elfcopy libelf readelf

2015-12-13 Thread Kai Wang
2015-12-13 7:04 GMT+01:00 Adrian Chadd : > Hm! > > cc1: warnings being treated as errors > > /usr/home/adrian/work/freebsd/head-embedded/src/usr.bin/readelf/../../contrib/elftoolchain/readelf/readelf.c: > In function 'dump_dwarf': > >

svn commit: r292158 - head/contrib/elftoolchain/readelf

2015-12-13 Thread Kai Wang
Author: kaiw Date: Sun Dec 13 08:27:14 2015 New Revision: 292158 URL: https://svnweb.freebsd.org/changeset/base/292158 Log: Fixed uninitialized variable warnings. Modified: head/contrib/elftoolchain/readelf/readelf.c Modified: head/contrib/elftoolchain/readelf/readelf.c

svn commit: r261259 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2014-01-29 Thread Kai Wang
Author: kaiw Date: Wed Jan 29 09:58:05 2014 New Revision: 261259 URL: http://svnweb.freebsd.org/changeset/base/261259 Log: Only declare `bysz' variable under little endian archs. Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c Modified:

svn commit: r261246 - in head: . cddl/contrib/opensolaris/tools/ctf/cvt contrib/elftoolchain lib/libdwarf lib/libelf sys/sys

2014-01-28 Thread Kai Wang
Author: kaiw Date: Tue Jan 28 21:38:54 2014 New Revision: 261246 URL: http://svnweb.freebsd.org/changeset/base/261246 Log: Merge from projects/elftoolchain: Upgrade libelf and libdwarf to newer versions from elftoolchain upstream (r2974). Convert ctfconvert to use the APIs from the new

Re: svn commit: r261246 - in head: . cddl/contrib/opensolaris/tools/ctf/cvt contrib/elftoolchain lib/libdwarf lib/libelf sys/sys

2014-01-28 Thread Kai Wang
On Tue, Jan 28, 2014 at 03:01:39PM -0800, Adrian Chadd wrote: .. and was this tested on anything other than i386/amd64? Don't be too hasty to MFC; us guys in ARM, PPC, MIPS, SPARC and IA64 world have to now retest everything. It'll take time for this to shake out. Of course! I can help

Re: svn commit: r261246 - in head: . cddl/contrib/opensolaris/tools/ctf/cvt contrib/elftoolchain lib/libdwarf lib/libelf sys/sys

2014-01-28 Thread Kai Wang
On Tue, Jan 28, 2014 at 05:37:11PM -0500, Pedro Giffuni wrote: 2) We start seeing more of those binutils replacements[1] in elftoolchain find their way into the tree now that they are already in the vendor area. Yes I will try to do that later. Some of the binutils replacements in elftoolchain

svn commit: r252430 - head/lib/libdwarf

2013-06-30 Thread Kai Wang
Author: kaiw Date: Sun Jun 30 21:06:47 2013 New Revision: 252430 URL: http://svnweb.freebsd.org/changeset/base/252430 Log: When decoding SLEB128, make sure sign extension is performed for 64-bit integers. MFC after:3 days Modified: head/lib/libdwarf/dwarf_init.c

svn commit: r221594 - head/share/man/man5

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:44:08 2011 New Revision: 221594 URL: http://svn.freebsd.org/changeset/base/221594 Log: * Rewrite ar.5 mannual page to better document ar(1) archive format. * Use more standard BSD license. Obtained from:elftoolchain Modified:

svn commit: r221595 - head/lib/libelf

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 11:04:36 2011 New Revision: 221595 URL: http://svn.freebsd.org/changeset/base/221595 Log: For zero-sized sections, set the `d_buf` field of the `Elf_Data` descriptor returned by `elf_rawdata()` to NULL. Obtained from:elftoolchain Modified:

svn commit: r216716 - head/usr.bin/ar

2010-12-26 Thread Kai Wang
Author: kaiw Date: Sun Dec 26 18:10:39 2010 New Revision: 216716 URL: http://svn.freebsd.org/changeset/base/216716 Log: * Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsis section. * Document the `-l`, `-M` and `-S` options. * Improve the text describing the behavior

svn commit: r216717 - head/usr.bin/ar

2010-12-26 Thread Kai Wang
Author: kaiw Date: Sun Dec 26 18:12:13 2010 New Revision: 216717 URL: http://svn.freebsd.org/changeset/base/216717 Log: Improve the description of the `-q` option. Obtained from:elftoolchain Modified: head/usr.bin/ar/ar.1 Modified: head/usr.bin/ar/ar.1

svn commit: r216719 - head/usr.bin/ar

2010-12-26 Thread Kai Wang
Author: kaiw Date: Sun Dec 26 18:15:32 2010 New Revision: 216719 URL: http://svn.freebsd.org/changeset/base/216719 Log: Document the syntax accepted by the `-M` option. Obtained from:elftoolchain Modified: head/usr.bin/ar/ar.1 Modified: head/usr.bin/ar/ar.1

Re: svn commit: r212373 - head/lib/libelf

2010-09-10 Thread Kai Wang
On Thu, Sep 09, 2010 at 07:54:02PM -0700, Steve Kargl wrote: On Thu, Sep 09, 2010 at 06:51:50PM +, Kai Wang wrote: Author: kaiw Date: Thu Sep 9 18:51:50 2010 New Revision: 212373 URL: http://svn.freebsd.org/changeset/base/212373 Log: libelf is overly strict about the type

svn commit: r212373 - head/lib/libelf

2010-09-09 Thread Kai Wang
Author: kaiw Date: Thu Sep 9 18:51:50 2010 New Revision: 212373 URL: http://svn.freebsd.org/changeset/base/212373 Log: libelf is overly strict about the type and alignment of Elf_Data objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For

svn commit: r210559 - head/lib/libelf

2010-07-28 Thread Kai Wang
Author: kaiw Date: Wed Jul 28 11:01:07 2010 New Revision: 210559 URL: http://svn.freebsd.org/changeset/base/210559 Log: Protect GNUHASH translation functions with #ifdef; unbreak cross toolchain build. Reported by: jchandra MFC after:1 month Modified:

svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 08:54:46 2010 New Revision: 210324 URL: http://svn.freebsd.org/changeset/base/210324 Log: - Correctly handle sections of type SHT_NOBITS. For these sections: - elf_getdata() and elf_rawdata() should return an Elf_Data structure that has its d_buf member

svn commit: r210325 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 08:58:52 2010 New Revision: 210325 URL: http://svn.freebsd.org/changeset/base/210325 Log: Bug fix: when updating headers using the gelf_update_*() functions, the appropriate `dirty' bit needs to be set for both the Elf32 and Elf64 case. Obtained from:

Re: svn commit: r210324 - head/lib/libelf

2010-07-21 Thread Kai Wang
On Wed, Jul 21, 2010 at 10:51:17AM +0200, Roman Divacky wrote: On Wed, Jul 21, 2010 at 08:54:46AM +, Kai Wang wrote: Author: kaiw Date: Wed Jul 21 08:54:46 2010 New Revision: 210324 URL: http://svn.freebsd.org/changeset/base/210324 Log: - Correctly handle sections of type

Re: svn commit: r210321 - head/lib/libelf

2010-07-21 Thread Kai Wang
On Wed, Jul 21, 2010 at 09:06:23AM +, Alexey Dokuchaev wrote: On Wed, Jul 21, 2010 at 08:43:48AM +, Kai Wang wrote: Author: kaiw Date: Wed Jul 21 08:43:48 2010 New Revision: 210321 URL: http://svn.freebsd.org/changeset/base/210321 Log: Remove a superfluous comment

svn commit: r210326 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:20:40 2010 New Revision: 210326 URL: http://svn.freebsd.org/changeset/base/210326 Log: Improve compatibility with other implementations of the ELF(3) API: when an output file has no program headers, set the 'e_phentsize' field of the ELF executable header to

svn commit: r210328 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:27:16 2010 New Revision: 210328 URL: http://svn.freebsd.org/changeset/base/210328 Log: Bug fix: permit the creation of zero-sized sections. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_update.c

svn commit: r210329 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:33:45 2010 New Revision: 210329 URL: http://svn.freebsd.org/changeset/base/210329 Log: Use unistd.h to declare the prototype for ftruncate(). Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_begin.c

svn commit: r210331 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:51:24 2010 New Revision: 210331 URL: http://svn.freebsd.org/changeset/base/210331 Log: Add a new ELF type denoting GNU style hash tables. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf.h Modified:

svn commit: r210332 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:56:42 2010 New Revision: 210332 URL: http://svn.freebsd.org/changeset/base/210332 Log: Changes for supporting GNU Hash sections. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf_align.c

svn commit: r210333 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:02:59 2010 New Revision: 210333 URL: http://svn.freebsd.org/changeset/base/210333 Log: Note that the *_fsize() functions are only defined for ELF types that have a fixed size. Obtained from:elftoolchain MFC after:1 month Modified:

svn commit: r210335 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:08:25 2010 New Revision: 210335 URL: http://svn.freebsd.org/changeset/base/210335 Log: - Return zero for file sizes of ELF types that have a variable size. - Neaten a few comments. Obtained from:elftoolchain MFC after:1 month

svn commit: r210340 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:39:29 2010 New Revision: 210340 URL: http://svn.freebsd.org/changeset/base/210340 Log: - Document that the *fsize() functions return a size of 1 for Elf types that don't have a fixed size. - The *fsize() functions should return a size of 1, for variable

svn commit: r210341 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:57:22 2010 New Revision: 210341 URL: http://svn.freebsd.org/changeset/base/210341 Log: Add support for translating sections of type ELF_T_GNUHASH. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_types.m4

svn commit: r210344 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 11:26:18 2010 New Revision: 210344 URL: http://svn.freebsd.org/changeset/base/210344 Log: Avoid switching between unsigned char and char in the C code generated from libelf_convert.m4. Obtained from:elftoolchain MFC after:1 month

svn commit: r210345 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:14:50 2010 New Revision: 210345 URL: http://svn.freebsd.org/changeset/base/210345 Log: * Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()` respectively. *

svn commit: r210347 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:30:58 2010 New Revision: 210347 URL: http://svn.freebsd.org/changeset/base/210347 Log: Fix a memory leak. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_update.c Modified: head/lib/libelf/elf_update.c

svn commit: r210349 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:00:01 2010 New Revision: 210349 URL: http://svn.freebsd.org/changeset/base/210349 Log: Remove a redundant word. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf.3 Modified: head/lib/libelf/elf.3

svn commit: r210351 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:18:57 2010 New Revision: 210351 URL: http://svn.freebsd.org/changeset/base/210351 Log: * Note that ar(1) archives may also be opened using `elf_memory(3)`. * Ignore the passed in value of the `fd` argument for ar(1) archives opened with elf_memory(3).

svn commit: r210352 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:23:07 2010 New Revision: 210352 URL: http://svn.freebsd.org/changeset/base/210352 Log: Add a cross-reference to `elf_rawfile(3)`. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/elf_getdata.3 Modified:

svn commit: r210353 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 13:29:00 2010 New Revision: 210353 URL: http://svn.freebsd.org/changeset/base/210353 Log: * Remove a superfluous error description. * Document an additional error that may be returned: `ELF_E_ARCHIVE`. Obtained from:elftoolchain MFC after:

svn commit: r209122 - head/lib/libelf

2010-06-13 Thread Kai Wang
Author: kaiw Date: Sun Jun 13 10:58:50 2010 New Revision: 209122 URL: http://svn.freebsd.org/changeset/base/209122 Log: * Improve compatibility with existing application code by permitting the use of `elf_getbase()` on non-archive members. This change is needed for gcc LTO (-flto) to

Re: svn commit: r209122 - head/lib/libelf

2010-06-13 Thread Kai Wang
On Sun, Jun 13, 2010 at 09:37:10AM -0700, Steve Kargl wrote: On Sun, Jun 13, 2010 at 10:58:50AM +, Kai Wang wrote: Author: kaiw Date: Sun Jun 13 10:58:50 2010 New Revision: 209122 URL: http://svn.freebsd.org/changeset/base/209122 Log: * Improve compatibility with existing

svn commit: r208189 - head/usr.bin/ar

2010-05-17 Thread Kai Wang
Author: kaiw Date: Mon May 17 09:37:59 2010 New Revision: 208189 URL: http://svn.freebsd.org/changeset/base/208189 Log: Removed ar(1)'s support for compressed archives. This change removes ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and fixes building HEAD on some

svn commit: r207812 - head/usr.sbin/bluetooth/bthidd

2010-05-09 Thread Kai Wang
Author: kaiw Date: Sun May 9 09:20:25 2010 New Revision: 207812 URL: http://svn.freebsd.org/changeset/base/207812 Log: Catch up with libusbhid merge (rev 205728). hid_get_data() now expects that the hid data passed in always contains the report ID byte. Thus we should not skip the the