This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libelf/24368] New: Add ELF_F_LAYOUT_OVERLAP


https://sourceware.org/bugzilla/show_bug.cgi?id=24368

            Bug ID: 24368
           Summary: Add ELF_F_LAYOUT_OVERLAP
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libelf
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Originally reported in bugzilla.redhat.com.

The mr511.de libelf provided ELF_F_LAYOUT_OVERLAP:

/*
 * Allow sections to overlap when ELF_F_LAYOUT is in effect.
 * Note that this flag ist NOT portable, and that it may render
 * the output file unusable.  Use with extreme caution!
 */
  ELF_F_LAYOUT_OVERLAP = 0x10000000
#define ELF_F_LAYOUT_OVERLAP    ELF_F_LAYOUT_OVERLAP 

Should elfutils libelf also support this?

In the original bug report Petr Machata said:

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.

Mark Wielaard said:

We do already have the (non-standard, non-documented) ELF_F_PERMISSIVE, which
could maybe be used for the same issue?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]