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: fweimer at redhat dot com
Subject: [Bug binutils/22136] Support marking "debug" info files with special ET_GNU_DEBUG_* values.
Date: Fri, 15 Sep 2017 17:37:05 +0000

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

--- Comment #10 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to H.J. Lu from comment #9)
> (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.

Your code iterates over the program header.  This is not supported for
seperated debuginfo, as I tried to explain above.  The dynamic linker would
need to use the section headers to locate the note section.

-- 
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]