Created attachment 653115 [details] patch to add ELF_F_LAYOUT_OVERLAP (code from libelf-0.8.13) Description of problem: I've an application that wishes to utilize these symbols. However, I can't compile it due to the missing symbol. Version-Release number of selected component (if applicable):elfutils-0.152-1.el6 How reproducible: 100% Steps to Reproduce: 1.attempt to compile something that works fine with libelf-0.8.13 2.fail 3. Actual results: unable to compile Expected results: able to use elfutils-libelf instead of libelf since one is supported. Additional info: An opensource program using this symbol http://eggy.yolky.org/pylibelf/static/docs/index.html
The ELF standard claims that "sections in a file may not overlap. No byte in a file resides in more than one section". libelf in elfutils currently disregards this directive, and when you pass ELF_F_LAYOUT, it is possible to create a file with overlapping sections. I believe it is worthwhile to implement checks for this. It would then make sense to relax this restriction by providing ELF_F_LAYOUT_OVERLAP.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux.
It might be better to suggest this feature upstream first. Is there an urgent reason to get this new functionality in RHEL6?
This isn't needed urgently. I've actually worked around the issue and don't require the functionality at all at this point.
(In reply to Pat Riehecky from comment #5) > This isn't needed urgently. I've actually worked around the issue and don't > require the functionality at all at this point. Thanks for the update. I am moving this bug to Fedora in that case.
We do already have the (non-standard, non-documented) ELF_F_PERMISSIVE, which could maybe be used for the same issue?
Moved upstream https://sourceware.org/bugzilla/show_bug.cgi?id=24368