bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/22136] Support marking "debug" info files with special ET_


From: hjl.tools at gmail dot com
Subject: [Bug binutils/22136] Support marking "debug" info files with special ET_GNU_DEBUG_* values.
Date: Fri, 15 Sep 2017 17:32:49 +0000

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

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Florian Weimer from comment #7)
> The dynamic linker cannot easily reject to load binaries with a specific
> program note because it uses the NOTE program header, and separated
> debuginfo currently has invalid program headers (well, the headers
> themselves are valid, but they do not refer to data in the executable).  The
> existing consumers rely on the fact that the program headers are unchanged
> from the original program headers, too.

To support Intel CET, ld.so needs to parse PT_NOTE segment.  Please see
hjl/cet/property branch:

https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/hjl/cet/property

I added:

           (_dl_map_object_from_fd): Call DL_PROCESS_PT_NOTE on PT_NOTE
            segment if DL_PROCESS_PT_NOTE is defined.

+
+#ifdef DL_PROCESS_PT_NOTE
+      case PT_NOTE:
+  DL_PROCESS_PT_NOTE (main_map, ph);
+  break;
+#endif

to do just that.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]