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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |mark at klomp dot org
   Last reconfirmed|                            |2025-02-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
I now see why I couldn't replicate your issue.
After the 0.192 release Aaron fixed the following bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=32253

This added a check to see if the file was an ET_REL file:

+      if (ehdr->e_type != ET_REL)
+       {
+         /* Only ET_REL files can have debug relocations to remove.  */
+         error (0, 0, _("Ignoring --reloc-debug-sections-only for " \
+                        "non-ET_REL file '%s'"), fname);
+         goto fail_close;
+       }

This specific patch was also backported to Fedora:
https://src.fedoraproject.org/rpms/elfutils/blob/rawhide/f/elfutils-0.192-strip-ignore-non-ET_REL.patch

Since I was testing on Fedora I had that patch already installed and
the reproducer would just say Ignoring --reloc-debug-sections-only...

I do think there is a real bug here though (if the poc would have the
e_type set to ET_REL), so I'll investigate.

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

Reply via email to