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/elf_getdata.c | |
parent | 77961b517488065e852ac83a1a5cdf7d18fe954c (diff) |
Fix for the same
* Initialize data.s for data that do not need a conversion.
Diffstat (limited to 'libelf/elf_getdata.c')
-rw-r--r-- | libelf/elf_getdata.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |