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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to