[patches] Re: [PATCH 2/2] RISC-V: Merge ELF attribute for ld

Maciej W. Rozycki macro@linux-mips.org
Fri Dec 21 10:01:00 GMT 2018


On Fri, 21 Dec 2018, Kito Cheng wrote:

> > PT_RISCV_ATTRIBUTES should be in the riscv-elf-psabi-doc pull request
> >
> > Do we really need PT_RISCV_ATTRIBUTES? The ARM port doesn't have one.  It
> > doesn't appear that any other target has one either.  This seems unnecessary.
> 
> PT_RISCV_ATTRIBUTES was used in linux kernel for easier find attribute
> section, it can just parse program header instead of section headers.
> 
> That's a mechanism to check ELF executable is safe to execute, however it was
> not accepted by most other guys at Linux Plumbers Conference 2018[1],
> so I'll remove that until community have consensus on that.

 Hmm, an ELF exexutable or DSO is not required to have section headers, as 
these structures are not meant to be used for program loading, so what was 
the alternative proposed by the opposing party?

  Maciej



More information about the Binutils mailing list