Red Hat Bugzilla – Bug 143385
Error with elf_update
Last modified: 2007-11-30 17:07:05 EST
Description of problem:
Elf_update function is not updating the ELF descriptor properly.
Version-Release number of selected component (if applicable):
A section can be added to the section header with data and necessary
fields can be updated by using elf_update function. Check out with
readelf command for the fields of new section added.
Steps to Reproduce:
1.Write a program which adds a section to a object file with data and
setting flags to headers,section and elf and then updating.
2.Use readlef command to check the corresponding added new section.
Elf-update should update all the fields in the ELF descriptor.
elf_update updates wrong information on the newly added section.
Created attachment 108879 [details]
source program -test case
This is a source program which adds section to an object file with data of
section specified in the data file.
I can't tell whether gelf_update is supposed to create
the additional information, or whether it's up to the
No matter what, this change will happen UPSTREAM if desired.