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: r260683 - svnadmin/conf

2014-01-15 Thread Kai Wang
Author: kaiw Date: Wed Jan 15 08:40:10 2014 New Revision: 260683 URL: http://svnweb.freebsd.org/changeset/base/260683 Log: Add my name for elftoolchain import. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

svn commit: r260685 - vendor/elftoolchain/elftoolchain-r2974

2014-01-15 Thread Kai Wang
Author: kaiw Date: Wed Jan 15 08:47:57 2014 New Revision: 260685 URL: http://svnweb.freebsd.org/changeset/base/260685 Log: Tag elftoolchain-r2974. Added: vendor/elftoolchain/elftoolchain-r2974/ - copied from r260684, vendor/elftoolchain/dist/

svn commit: r260686 - svnadmin/conf

2014-01-15 Thread Kai Wang
Author: kaiw Date: Wed Jan 15 08:49:47 2014 New Revision: 260686 URL: http://svnweb.freebsd.org/changeset/base/260686 Log: Remove myself after the import was done. Modified: svnadmin/conf/sizelimit.conf Modified: svnadmin/conf/sizelimit.conf

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: r231703 - stable/8/lib/libelf

2012-02-14 Thread Kai Wang
Author: kaiw Date: Tue Feb 14 19:48:57 2012 New Revision: 231703 URL: http://svn.freebsd.org/changeset/base/231703 Log: MFC r221595: For zero-sized sections, set the `d_buf` field of the `Elf_Data` descriptor returned by `elf_rawdata()` to NULL. Modified:

svn commit: r231706 - stable/8/lib/libelf

2012-02-14 Thread Kai Wang
Author: kaiw Date: Tue Feb 14 19:50:41 2012 New Revision: 231706 URL: http://svn.freebsd.org/changeset/base/231706 Log: MFC r221598: Document the behavior of `elf_getdata()` and `elf_rawdata()` with zero-sized ELF sections. Modified: stable/8/lib/libelf/elf_getdata.3 Directory

svn commit: r221586 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:08:01 2011 New Revision: 221586 URL: http://svn.freebsd.org/changeset/base/221586 Log: MFC r201166 (kientzle): ar only needs to support ar format. Modified: stable/8/usr.bin/ar/acpyacc.y stable/8/usr.bin/ar/read.c Directory Properties:

svn commit: r221587 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:23:07 2011 New Revision: 221587 URL: http://svn.freebsd.org/changeset/base/221587 Log: MFC r208189: Removed ar(1)'s support for compressed archives. This change removes ar(1)'s dependencies on compressor libraries -lz, -lbz2 and -llzma and fixes

svn commit: r221588 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:27:23 2011 New Revision: 221588 URL: http://svn.freebsd.org/changeset/base/221588 Log: MFC r213643 (kientzle): Add -D (deterministic) option to ar. When set, it forces all timestamps and owners to zero and modes to 0644. Useful for producing libraries

svn commit: r221589 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:31:34 2011 New Revision: 221589 URL: http://svn.freebsd.org/changeset/base/221589 Log: MFC r216014: Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generate a deterministic archive symbol table (i.e. timestamp for the symbol table

svn commit: r221590 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:32:52 2011 New Revision: 221590 URL: http://svn.freebsd.org/changeset/base/221590 Log: MFC r216716: * Add mention of the `-f`, `-q`, `-S`, and `-V` options in the synopsis section. * Document the `-l`, `-M` and `-S` options. * Improve the text

svn commit: r221591 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:33:59 2011 New Revision: 221591 URL: http://svn.freebsd.org/changeset/base/221591 Log: MFC r216717: Improve the description of the `-q` option. Modified: stable/8/usr.bin/ar/ar.1 Directory Properties: stable/8/usr.bin/ar/ (props changed) Modified:

svn commit: r221592 - stable/8/usr.bin/ar

2011-05-07 Thread Kai Wang
Author: kaiw Date: Sat May 7 10:35:43 2011 New Revision: 221592 URL: http://svn.freebsd.org/changeset/base/221592 Log: MFC r216719: Document the syntax accepted by the `-M` option. Modified: stable/8/usr.bin/ar/ar.1 Directory Properties: stable/8/usr.bin/ar/ (props changed)

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

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

2010-11-28 Thread Kai Wang
Author: kaiw Date: Sun Nov 28 18:53:57 2010 New Revision: 216014 URL: http://svn.freebsd.org/changeset/base/216014 Log: Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generate a deterministic archive symbol table (i.e. timestamp for the symbol table member header is set

svn commit: r213670 - stable/8/lib/libelf

2010-10-10 Thread Kai Wang
Author: kaiw Date: Sun Oct 10 12:20:04 2010 New Revision: 213670 URL: http://svn.freebsd.org/changeset/base/213670 Log: MFC r212373: 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

svn commit: r213671 - stable/7/lib/libelf

2010-10-10 Thread Kai Wang
Author: kaiw Date: Sun Oct 10 12:21:35 2010 New Revision: 213671 URL: http://svn.freebsd.org/changeset/base/213671 Log: MFC r212373: 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

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: r212196 - stable/8/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 11:50:17 2010 New Revision: 212196 URL: http://svn.freebsd.org/changeset/base/212196 Log: MFC r210321: Remove a superfluous comment. Modified: stable/8/lib/libelf/elf_update.c Directory Properties: stable/8/lib/libelf/ (props changed) Modified:

svn commit: r212197 - stable/7/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 11:50:23 2010 New Revision: 212197 URL: http://svn.freebsd.org/changeset/base/212197 Log: MFC r210321: Remove a superfluous comment. Modified: stable/7/lib/libelf/elf_update.c Directory Properties: stable/7/lib/libelf/ (props changed) Modified:

svn commit: r212198 - in stable/8: cddl/contrib/opensolaris/tools/ctf/cvt lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:06:02 2010 New Revision: 212198 URL: http://svn.freebsd.org/changeset/base/212198 Log: MFC r210324, r210438. r210324: - Correctly handle sections of type SHT_NOBITS. For these sections: - elf_getdata() and elf_rawdata() should return an Elf_Data

svn commit: r212199 - in stable/7: cddl/contrib/opensolaris/tools/ctf/cvt lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:06:09 2010 New Revision: 212199 URL: http://svn.freebsd.org/changeset/base/212199 Log: MFC r210324, r210438. r210324: - Correctly handle sections of type SHT_NOBITS. For these sections: - elf_getdata() and elf_rawdata() should return an Elf_Data

svn commit: r212200 - stable/8/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:19:19 2010 New Revision: 212200 URL: http://svn.freebsd.org/changeset/base/212200 Log: MFC r210325,r210326,r210328,r210349 r210325: Bug fix: when updating headers using the gelf_update_*() functions, the appropriate `dirty' bit needs to be set for

svn commit: r212203 - stable/7/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:40:16 2010 New Revision: 212203 URL: http://svn.freebsd.org/changeset/base/212203 Log: MFC r210329,r210330,r210347. r210329: Use unistd.h to declare the prototype for ftruncate(). r210330: Allow an application that updates only the ELF Ehdr to

svn commit: r212204 - stable/8/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:52:44 2010 New Revision: 212204 URL: http://svn.freebsd.org/changeset/base/212204 Log: MFC r210344,r210345,r210348. r210344: Avoid switching between unsigned char and char in the C code generated from libelf_convert.m4. r210345: * Deprecate

svn commit: r212205 - stable/7/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 12:52:51 2010 New Revision: 212205 URL: http://svn.freebsd.org/changeset/base/212205 Log: MFC r210344,r210345,r210348. r210344: Avoid switching between unsigned char and char in the C code generated from libelf_convert.m4. r210345: * Deprecate

svn commit: r212206 - stable/8/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 13:00:22 2010 New Revision: 212206 URL: http://svn.freebsd.org/changeset/base/212206 Log: MFC r210351-r210353,r211192. r210351: * Note that ar(1) archives may also be opened using `elf_memory(3)`. * Ignore the passed in value of the `fd` argument for

svn commit: r212207 - stable/7/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 13:00:28 2010 New Revision: 212207 URL: http://svn.freebsd.org/changeset/base/212207 Log: MFC r210351-r210353,r211192. r210351: * Note that ar(1) archives may also be opened using `elf_memory(3)`. * Ignore the passed in value of the `fd` argument for

svn commit: r212208 - stable/8/lib/libelf

2010-09-04 Thread Kai Wang
Author: kaiw Date: Sat Sep 4 13:13:00 2010 New Revision: 212208 URL: http://svn.freebsd.org/changeset/base/212208 Log: MFC r210331-r210333,r210335,r210336,r210338,r210340,r210341,r210559. r210331: Add a new ELF type denoting GNU style hash tables. r210332: Changes for

svn commit: r211192 - head/lib/libelf

2010-08-11 Thread Kai Wang
Author: kaiw Date: Wed Aug 11 19:59:31 2010 New Revision: 211192 URL: http://svn.freebsd.org/changeset/base/211192 Log: Add translation support for section type SHT_SUNW_dof. Submitted by: rpaulo MFC after:2 weeks Modified: head/lib/libelf/libelf_data.c Modified:

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: r210321 - head/lib/libelf

2010-07-21 Thread Kai Wang
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. Obtained from: elftoolchain MFC after: 1 month Modified: head/lib/libelf/elf_update.c 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: r210330 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 09:47:14 2010 New Revision: 210330 URL: http://svn.freebsd.org/changeset/base/210330 Log: Allow an application that updates only the ELF Ehdr to work. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/_libelf.h

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: r210336 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:11:46 2010 New Revision: 210336 URL: http://svn.freebsd.org/changeset/base/210336 Log: Reduce verbosity. Obtained from:elftoolchain MFC after:1 month Modified: head/lib/libelf/libelf_fsize.m4 Modified:

svn commit: r210338 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 10:25:02 2010 New Revision: 210338 URL: http://svn.freebsd.org/changeset/base/210338 Log: Perform additional checks when translating between file and memory representations of ELF types. The ELF(3) API allows applications to request a conversion that is

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: r210348 - head/lib/libelf

2010-07-21 Thread Kai Wang
Author: kaiw Date: Wed Jul 21 12:54:34 2010 New Revision: 210348 URL: http://svn.freebsd.org/changeset/base/210348 Log: Move helper functions `_libelf_ar_get_{name,number,string}()` and `_libelf_ar_open()` to a new compilation unit libelf_ar_util.c to break the circular dependency between

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: r209393 - stable/8/lib/libelf

2010-06-21 Thread Kai Wang
Author: kaiw Date: Mon Jun 21 13:47:29 2010 New Revision: 209393 URL: http://svn.freebsd.org/changeset/base/209393 Log: MFC r209122: * Improve compatibility with existing application code by permitting the use of `elf_getbase()` on non-archive members. This change is needed

svn commit: r209394 - stable/7/lib/libelf

2010-06-21 Thread Kai Wang
Author: kaiw Date: Mon Jun 21 13:52:31 2010 New Revision: 209394 URL: http://svn.freebsd.org/changeset/base/209394 Log: MFC r209122: * Improve compatibility with existing application code by permitting the use of `elf_getbase()` on non-archive members. This change is needed

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: r208262 - in stable/8: lib/libusbhid usr.sbin/bluetooth/bthidd

2010-05-18 Thread Kai Wang
Author: kaiw Date: Tue May 18 10:32:20 2010 New Revision: 208262 URL: http://svn.freebsd.org/changeset/base/208262 Log: MFC r205728 Merge improvements from kernel HID parser to the userland usbhid(3) parser. This merge does not change any API and should not break any native or

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

svn commit: r205728 - head/lib/libusbhid

2010-03-27 Thread Kai Wang
Author: kaiw Date: Sat Mar 27 08:00:16 2010 New Revision: 205728 URL: http://svn.freebsd.org/changeset/base/205728 Log: Merge improvements from kernel HID parser to the userland usbhid(3) parser. This merge does not change any API and should not break any native or thirdparty applications.

svn commit: r190904 - head/sys/sys

2009-04-10 Thread Kai Wang
Author: kaiw Date: Fri Apr 10 21:24:18 2009 New Revision: 190904 URL: http://svn.freebsd.org/changeset/base/190904 Log: Added DT_GNU_HASH entry for GNU-style hash table. Modified: head/sys/sys/elf_common.h Modified: head/sys/sys/elf_common.h

svn commit: r188472 - in head/sys/dev: ppc uart

2009-02-10 Thread Kai Wang
Author: kaiw Date: Wed Feb 11 00:08:03 2009 New Revision: 188472 URL: http://svn.freebsd.org/changeset/base/188472 Log: Added entries for Lava SP-PCI (1 serial + 1 parallel) PCI card. The card is a multifunction PCI and report itself as two logical devices. Modified:

svn commit: r186720 - head/sys/sys

2009-01-03 Thread Kai Wang
Author: kaiw Date: Sat Jan 3 13:42:49 2009 New Revision: 186720 URL: http://svn.freebsd.org/changeset/base/186720 Log: Added section type SHT_GNU_HASH. GNU-style .hash section is a new style of hash section with better performace than the original SYSV hash. It can be generated by newer

svn commit: r186316 - head/sys/sys

2008-12-19 Thread Kai Wang
Author: kaiw Date: Fri Dec 19 09:32:31 2008 New Revision: 186316 URL: http://svn.freebsd.org/changeset/base/186316 Log: Update elf_common.h with new EM_ types found in the latest ELF gABI. This commit is slightly different from the original patch in the PR: 1. EM_ALPHA keeps the old