diff options
| author | Petr Machata <[email protected]> | 2010-04-06 14:17:41 +0200 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2010-04-06 14:18:18 +0200 |
| commit | d7b12c622c06fd592b74a8ac4eb4fbdac42699b5 (patch) | |
| tree | 8331485b5383c135ee065be2ea72ba7a9be49e08 /libelf | |
| parent | 77961b517488065e852ac83a1a5cdf7d18fe954c (diff) | |
Fix for the same
* Initialize data.s for data that do not need a conversion.
Diffstat (limited to 'libelf')
| -rw-r--r-- | libelf/ChangeLog | 5 | ||||
| -rw-r--r-- | libelf/elf_getdata.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog index b0cff67c..1fbdf4cc 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2010-04-01 Petr Machata <[email protected]> + + * elf_getdata.c (__elf_getdata_rdlock): Initialize data.s for data + that do not need a conversion. + 2010-03-11 Roland McGrath <[email protected]> * elf.h: Update from glibc. diff --git a/libelf/elf_getdata.c b/libelf/elf_getdata.c index e083b033..5a718f82 100644 --- a/libelf/elf_getdata.c +++ b/libelf/elf_getdata.c @@ -467,9 +467,12 @@ __elf_getdata_rdlock (scn, data) scn->rawdata.d.d_size, scn->rawdata.d.d_type); } else - /* This is an empty or NOBITS section. There is no buffer but - the size information etc is important. */ - scn->data_list.data.d = scn->rawdata.d; + { + /* This is an empty or NOBITS section. There is no buffer but + the size information etc is important. */ + scn->data_list.data.d = scn->rawdata.d; + scn->data_list.data.s = scn; + } scn->data_list_rear = &scn->data_list; } |
