This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patches] Re: [PATCH 2/2] RISC-V: Merge ELF attribute for ld
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Kito Cheng <kito dot cheng at gmail dot com>
- Cc: patches at groups dot riscv dot org, Jim Wilson <jimw at sifive dot com>, binutils at sourceware dot org, Palmer Dabbelt <palmer at sifive dot com>
- Date: Fri, 21 Dec 2018 10:00:48 +0000 (GMT)
- Subject: Re: [patches] Re: [PATCH 2/2] RISC-V: Merge ELF attribute for ld
- References: <CA+yXCZB5hwBiY0AJJATDaBBu0Yv2Ncu+-V3wFYNGCin-Gzkd0g@mail.gmail.com> <CAFyWVaYyfv4COp2FqT=2m4N04C9BTqsBByJ4GUjUpADt6VZ9Ag@mail.gmail.com> <CA+yXCZBwbaz29QQBSJmOFXw332v=71vgSN0mfsdMbEQeuynvFg@mail.gmail.com>
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