Bug 880836 - [RFE] libelf provides ELF_F_LAYOUT_OVERLAP, elfutils-libelf can provide this as well
Summary: [RFE] libelf provides ELF_F_LAYOUT_OVERLAP, elfutils-libelf can provide this ...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-27 20:56 UTC by jcpunk
Modified: 2019-03-20 22:06 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-03-20 22:06:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to add ELF_F_LAYOUT_OVERLAP (code from libelf-0.8.13) (534 bytes, patch)
2012-11-27 20:56 UTC, jcpunk
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Sourceware 24368 0 None None None 2019-03-20 22:06:49 UTC

Description jcpunk 2012-11-27 20:56:43 UTC
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

Comment 2 Petr Machata 2012-11-30 15:33:30 UTC
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.

Comment 3 RHEL Program Management 2013-10-14 00:13:48 UTC
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.

Comment 4 Mark Wielaard 2014-02-13 22:08:08 UTC
It might be better to suggest this feature upstream first.
Is there an urgent reason to get this new functionality in RHEL6?

Comment 5 Pat Riehecky 2014-02-13 22:21:59 UTC
This isn't needed urgently.  I've actually worked around the issue and don't require the functionality at all at this point.

Comment 6 Mark Wielaard 2014-02-17 09:05:26 UTC
(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.

Comment 7 Mark Wielaard 2015-06-08 12:28:56 UTC
We do already have the (non-standard, non-documented) ELF_F_PERMISSIVE, which could maybe be used for the same issue?

Comment 8 Mark Wielaard 2019-03-20 22:06:49 UTC
Moved upstream https://sourceware.org/bugzilla/show_bug.cgi?id=24368


Note You need to log in before you can comment on or make changes to this bug.