platform/upstream/elfutils.git
4 years agoupgrade version to 0.168 54/228454/1 sandbox/wangbiao/rpm_upgrade
biao716.wang [Fri, 20 Mar 2020 12:58:56 +0000 (21:58 +0900)]
upgrade version to 0.168

Change-Id: Ie41fd1879e3c8bbd8a386d1eeffe376d80518fc0
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agofix build error with upgraded rpm 4.14 version 46/219446/1
biao716.wang [Thu, 5 Dec 2019 02:53:15 +0000 (10:53 +0800)]
fix build error with upgraded rpm 4.14 version
The build error info:
[   58s] + exec rpmbuild --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl obs://private/Tizen:Base:Opensource/standard/1b36ae7e4cd49ebace5526e3d488f7e8-elfutils' -ba /home/abuild/rpmbuild/SOURCES/elfutils.spec
[   58s] rpmbuild: error while loading shared libraries: libdw.so.1: cannot open shared object file: No such file or director
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Change-Id: I8ee428012035a2d93e51c1111e9d04842af3b5e6

5 years agoelflint: Don't check section group without flags word. 76/208276/2 submit/tizen_base/20200319.061934
Mark Wielaard [Tue, 28 Mar 2017 11:33:03 +0000 (13:33 +0200)]
elflint: Don't check section group without flags word.

https://sourceware.org/bugzilla/show_bug.cgi?id=21320

Signed-off-by: Mark Wielaard <mark@klomp.org>
(cherry picked from commit fb6709f1a41b58a9557ea45b7f53ae678c660b21)

Change-Id: I5527718c988ea5d3d1f71e628b95aab797b56506

5 years agoelflint: Sanity check the number of phdrs and shdrs available. 75/208275/2
Mark Wielaard [Mon, 27 Mar 2017 23:25:34 +0000 (01:25 +0200)]
elflint: Sanity check the number of phdrs and shdrs available.

Make sure we can at least read the shnum sections or phnum segments.
Limit the number we do check to those we can actually read.

https://sourceware.org/bugzilla/show_bug.cgi?id=21312

Signed-off-by: Mark Wielaard <mark@klomp.org>
(cherry picked from commit 4314716cd498bb51639db717bd7ce6182de33322)

Change-Id: I876b6695a01fd31334812c5db4a7898eed52705b

5 years agoelflint: Don't trust sh_entsize when checking hash sections. 74/208274/2
Mark Wielaard [Mon, 27 Mar 2017 22:38:52 +0000 (00:38 +0200)]
elflint: Don't trust sh_entsize when checking hash sections.

Calculate and use the expected entsize instead of relying on the one
given by the ELF file section header. Return early if there isn't enough
data in the section to check the full hash table.

https://sourceware.org/bugzilla/show_bug.cgi?id=21311

Signed-off-by: Mark Wielaard <mark@klomp.org>
(cherry picked from commit 61fe61898747f63eb35a81c2261f3590a3dab8fd)

Change-Id: I8e772fed09c84b781dbcc5e4eba6f65c3a59143f

5 years agoelflint: Check symbol table data is big enough before checking. 73/208273/1
Mark Wielaard [Mon, 27 Mar 2017 21:59:02 +0000 (23:59 +0200)]
elflint: Check symbol table data is big enough before checking.

Before checking symbol index zero we should make sure the data size
is big enough.

https://sourceware.org/bugzilla/show_bug.cgi?id=21310

Signed-off-by: Mark Wielaard <mark@klomp.org>
(cherry picked from commit 9a0d9d314a6342b56e3277bd7ad7ecb6e73a7d38)

Change-Id: Iedc21ec2550a8d76934faa5ac026b60ba9393300

5 years agoUse the empty string for note names with zero size (without any data). 72/208272/1
Mark Wielaard [Fri, 24 Mar 2017 13:10:26 +0000 (14:10 +0100)]
Use the empty string for note names with zero size (without any data).

ELF notes can have a zero sized name. In which case there is no data at
all (so also no zero terminator). Make sure to use the empty string for
such notes if the code does not otherwise explicitly check n_namesz.

https://sourceware.org/bugzilla/show_bug.cgi?id=21300

Signed-off-by: Mark Wielaard <mark@klomp.org>
(Cherry picked from commit b0b58c5e0b34e54194aa042f2310af58ee7de603)

Change-Id: I147a773640eed99f525b03984bba01c20f899ab4

5 years agolibebl: Fix missing brackets around if statement body. 76/202676/5
Mark Wielaard [Sat, 9 Jan 2016 21:09:48 +0000 (22:09 +0100)]
libebl: Fix missing brackets around if statement body.

GCC6 [will have] a nice new warning that showed a real bug:

elfutils/libebl/eblobjnote.c: In function ‘ebl_object_note’:
elfutils/libebl/eblobjnote.c:135:5: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
     switch (type)
     ^~~~~~

elfutils/libebl/eblobjnote.c:45:3: note: ...this ‘if’ clause, but it is not
   if (! ebl->object_note (name, type, descsz, desc))
   ^~

And indeed, it should have been under the if, but wasn't because of missing
brackets. Added brackets (and reindent).

(backported c5da7c9e08c2bdb6dba8e115dcc09ed51a07f0e4)

Change-Id: I0c8b5b7606a0005c0f3ce6f6d6df6a5b0dca36d6
Signed-off-by: Mark Wielaard <mjw@redhat.com>
5 years agoRemove redundant NULL tests. 75/202675/3
Chih-Hung Hsieh [Wed, 9 Sep 2015 19:32:07 +0000 (12:32 -0700)]
Remove redundant NULL tests.

GCC6 and Clang give warnings on redundant NULL tests of parameters
that are declared with __nonnull_attribute__.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
(cherry picked from commit 2d982861e5e23d38653df7d8dce1d2282cda8ce1)

Change-Id: I7a1a204555c931caa57843268ddb31baae30bf79

5 years agolibelf: Make sure ar_size is terminated when reading ar long names. 74/202674/2
Mark Wielaard [Thu, 14 Feb 2019 10:47:59 +0000 (11:47 +0100)]
libelf: Make sure ar_size is terminated when reading ar long names.

The ar_size is given as a fixed size decimal string, right padded with
spaces.  Make sure we read it properly even if there is no terminating
space. Also sanity check len early if we can.

https://sourceware.org/bugzilla/show_bug.cgi?id=24085

Signed-off-by: Mark Wielaard <mark@klomp.org>
(backported e32380ecefbb23448541367283d3b94930762986)

Change-Id: I68db09ed59be22f9656f187337b252f0ba22ec95

5 years agolibdw: Check terminating NUL byte in dwarf_getsrclines for dir/file table. 73/202673/2
Mark Wielaard [Sun, 20 Jan 2019 21:10:18 +0000 (22:10 +0100)]
libdw: Check terminating NUL byte in dwarf_getsrclines for dir/file table.

For DWARF version < 5 the .debug_line directory and file tables consist
of a terminating NUL byte after all strings. The code used to just skip
this without checking it actually existed. This could case a spurious
read past the end of data.

Fix the same issue in readelf.

https://sourceware.org/bugzilla/show_bug.cgi?id=24102

Signed-off-by: Mark Wielaard <mark@klomp.org>
(backported 2562759d6fe5b364fe224852e64e8bda39eb2e35 9/11 chunks)

Change-Id: I582b072d8550a530db6c7de82f3201216585904f

5 years agolibdwfl: Sanity check partial core file dyn data read. 71/202671/2
Mark Wielaard [Sun, 20 Jan 2019 22:05:56 +0000 (23:05 +0100)]
libdwfl: Sanity check partial core file dyn data read.

When reading the dyn data from the core file check if we got everything,
or just part of the data.

https://sourceware.org/bugzilla/show_bug.cgi?id=24103

(backported da5c5336a1eaf519de246f7d9f0f5585e1d4ac59)
Signed-off-by: Mark Wielaard <mark@klomp.org>
Change-Id: Ic8571358760436e7556e121782e01135bf1f69bf

5 years agolibebl: Check NT_PLATFORM core notes contain a zero terminated string. 72/202672/2
Mark Wielaard [Wed, 16 Jan 2019 14:41:31 +0000 (15:41 +0100)]
libebl: Check NT_PLATFORM core notes contain a zero terminated string.

Most strings in core notes are fixed size. But NT_PLATFORM contains just
a variable length string. Check that it is actually zero terminated
before passing to readelf to print.

https://sourceware.org/bugzilla/show_bug.cgi?id=24089

Signed-off-by: Mark Wielaard <mark@klomp.org>
(backported de01cc6f9446187d69b9748bb3636361c79e77a4)

Change-Id: Id211422647765b4289779f4a6138d03541a26f7d

5 years agolibdw: Check end of attributes list consistently. 06/201406/2
Mark Wielaard [Sat, 18 Aug 2018 17:51:27 +0000 (19:51 +0200)]
libdw: Check end of attributes list consistently.

dwarf_child (__libdw_find_attr), dwarf_getabbrevattr[_data] and
dwarf_getattrs all assume the end of the attribute list is when
both the name (code) and form of the attribute are zero.

dwarf_getabbrev (__libdw_getabbrev) and dwarf_hasattr assume the
end of the attribute list is when either the name (code) or the
form of the attribute is zero.

The DWARF spec says: "The series of attribute specifications ends
with an entry containing 0 for the name and 0 for the form." So
the first check is correct.

Make sure dwarf_getabbrev and dwarf_hasattr use the same check.
This is important since all other functions expect dwarf_getabbrev
(__libdw_getabbrev) to have done a data sanity check of the attribute.
So if the ending condition is different it could cause a crash.

https://sourceware.org/bugzilla/show_bug.cgi?id=23529

Signed-off-by: Mark Wielaard <mark@klomp.org>
(backported 6983e59b727458a6c64d9659c85f08218bc4fcda without
dwarf_hasattr.c changes)

Change-Id: I7514e0ba72dd770d76cf4cb3f8d94d112bf8bbd4

5 years agolibdw, readelf: Make sure there is enough data to read full aranges header. 05/201405/1
Mark Wielaard [Sat, 18 Aug 2018 11:27:48 +0000 (13:27 +0200)]
libdw, readelf: Make sure there is enough data to read full aranges header.

dwarf_getaranges didn't check if there was enough data left to read both
the address and segment size. readelf didn't check there was enough data
left to read the segment size.

https://sourceware.org/bugzilla/show_bug.cgi?id=23541

Signed-off-by: Mark Wielaard <mark@klomp.org>
(backported 29e31978ba51c1051743a503ee325b5ebc03d7e9 without readelf changes)

Change-Id: I9b433f353275371997ed02301b0b759a43fb9f35

9 years agopackaging: bump to 0.160 accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/base/20151223.052249 accepted/tizen/common/20141126.220119 accepted/tizen/ivi/20141202.084939 accepted/tizen/mobile/20141128.015624 submit/tizen/20141126.145833 submit/tizen_base/20151223.111111 submit/tizen_base/20151223.111112 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
Chanho Park [Wed, 26 Nov 2014 14:47:37 +0000 (23:47 +0900)]
packaging: bump to 0.160

Change-Id: I13d00e0b9eef0ea7bf8786d30e43d2e0f9ac5860
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
9 years agoUpdate license and package groups
Anas Nashif [Tue, 6 Aug 2013 14:04:20 +0000 (10:04 -0400)]
Update license and package groups

Change-Id: Ie8ba3edff327cf01fd3a679301bbfcb34fb70ae5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
9 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 20:17:46 +0000 (23:17 +0300)]
resetting manifest requested domain to floor

9 years agoUpdate to 0.155
Anas Nashif [Sun, 7 Jul 2013 22:05:01 +0000 (18:05 -0400)]
Update to 0.155

9 years agoDo not parse changes file
Anas Nashif [Fri, 22 Mar 2013 21:16:17 +0000 (14:16 -0700)]
Do not parse changes file

9 years agoFixed package groups
Anas Nashif [Fri, 22 Mar 2013 17:58:36 +0000 (10:58 -0700)]
Fixed package groups

9 years agokeep static libs
Anas Nashif [Thu, 8 Nov 2012 03:31:19 +0000 (19:31 -0800)]
keep static libs

9 years agotake date from spec file
Anas Nashif [Thu, 8 Nov 2012 02:51:34 +0000 (18:51 -0800)]
take date from spec file

9 years agotake date from spec file
Anas Nashif [Thu, 8 Nov 2012 02:24:44 +0000 (18:24 -0800)]
take date from spec file

9 years agotake date from spec file
Anas Nashif [Thu, 8 Nov 2012 02:17:16 +0000 (18:17 -0800)]
take date from spec file

9 years agoadd missing files
Anas Nashif [Thu, 8 Nov 2012 02:12:00 +0000 (18:12 -0800)]
add missing files

9 years agoelfutils-0.148-dont-crash.diff
Stephan Kulow [Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)]
elfutils-0.148-dont-crash.diff

Avoid crash if the header is 0

9 years agoFix for kernel debuginfo files
Takashi Iwai [Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)]
Fix for kernel debuginfo files

Above BZ originally occured with Systemtap testsuite (stmt_rel.exp).

# stap -e 'probe kernel.statement("bio_put@fs/bio.c:*") {}'
semantic error: libdw failure (dwarf_getsrcfiles): invalid DWARF
...

9 years agoelfutils-uninitialized.diff
Anas Nashif [Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)]
elfutils-uninitialized.diff

9 years agolibebl-prototype-fix.diff
Anas Nashif [Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)]
libebl-prototype-fix.diff

Update from K&R to ANSI prototype.   This fix should go upstream.

9 years agodo not build po and tests components
Anas Nashif [Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)]
do not build po and tests components

9 years agoadd packaging
Anas Nashif [Wed, 7 Nov 2012 13:43:26 +0000 (05:43 -0800)]
add packaging

9 years agoImported Upstream version 0.160 upstream/0.160
Chanho Park [Wed, 26 Nov 2014 14:32:42 +0000 (23:32 +0900)]
Imported Upstream version 0.160

11 years agoImported Upstream version 0.155 upstream/0.155
Anas Nashif [Sat, 6 Jul 2013 14:56:34 +0000 (10:56 -0400)]
Imported Upstream version 0.155

11 years agoImported Upstream version 0.153 upstream/0.153
Anas Nashif [Wed, 7 Nov 2012 13:43:24 +0000 (05:43 -0800)]
Imported Upstream version 0.153