Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-16 Thread Greg Ungerer
On 16/4/21 10:26 am, Damien Le Moal wrote: On 2021/04/16 9:22, Al Viro wrote: On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: binfmt_flat tends to go through Greg's uclinux tree, adding him and the list. FWIW, my involvement with binfmt_flat had been pretty much

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-15 Thread Damien Le Moal
On 2021/04/16 9:22, Al Viro wrote: > On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: >> binfmt_flat tends to go through Greg's uclinux tree, adding him and >> the list. > > FWIW, my involvement with binfmt_flat had been pretty much nil - > the least trivial had been

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-15 Thread Al Viro
On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: > binfmt_flat tends to go through Greg's uclinux tree, adding him and > the list. FWIW, my involvement with binfmt_flat had been pretty much nil - the least trivial had been "binfmt_flat: flat_{get,put}_addr_from_rp()

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-15 Thread Damien Le Moal
On 2021/04/15 14:56, Christoph Hellwig wrote: > binfmt_flat tends to go through Greg's uclinux tree, adding him and > the list. Thanks Christoph. I resent the series adding Gerg and uclinux-dev. MAINTAINERS file needs an update may be ? > > On Wed, Apr 14, 2021 at 10:46:36PM -0700, Palmer

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-14 Thread Christoph Hellwig
binfmt_flat tends to go through Greg's uclinux tree, adding him and the list. On Wed, Apr 14, 2021 at 10:46:36PM -0700, Palmer Dabbelt wrote: > On Wed, 14 Apr 2021 17:32:10 PDT (-0700), Damien Le Moal wrote: >>> On 2021/04/08 0:49, Damien Le Moal wrote: >>> RISC-V NOMMU flat binaries cannot

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-14 Thread Palmer Dabbelt
On Wed, 14 Apr 2021 17:32:10 PDT (-0700), Damien Le Moal wrote: On 2021/04/08 0:49, Damien Le Moal wrote: RISC-V NOMMU flat binaries cannot tolerate a gap between the text and data section as the toolchain fully resolves at compile time the PC relative global pointer (__global_pointer$ value

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-14 Thread Damien Le Moal
On 2021/04/08 0:49, Damien Le Moal wrote: > RISC-V NOMMU flat binaries cannot tolerate a gap between the text and > data section as the toolchain fully resolves at compile time the PC > relative global pointer (__global_pointer$ value loaded in gp register). > Without a relocation entry provided,

[PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-07 Thread Damien Le Moal
RISC-V NOMMU flat binaries cannot tolerate a gap between the text and data section as the toolchain fully resolves at compile time the PC relative global pointer (__global_pointer$ value loaded in gp register). Without a relocation entry provided, the flat bin loader cannot fix the value if a gap