[PATCH 0/7] kvx: New port.

Michael Matz matz@suse.de
Wed Jul 26 13:32:56 GMT 2023


Hello,

On Wed, 26 Jul 2023, Paul Iannetta via Binutils wrote:

> > Most of the remaining failures appear to be due to this error:
> > 
> >  error: PHDR segment not covered by LOAD segment
> > 
> > Which I am guessing is due to some kind of issue with the built in linker script
> > for the KVX target.  Although I am not sure exactly what the issue might be.
> > 
> This one is due to the fact that we do not generate a PHDR at all
> since we only support a very primitive form of dynamic loading (only
> through calls to dlopen/dlsym), we do not need a PHDR.

You are using the ELF file format right?  In the gABI a program header 
table is actually non-optional for executables and shared libs.  
Obviously a psABI can do mostly whatever it likes, but not having PHDRs is 
_very_ unusual.  They aren't specific to dynamic linking: after all, even 
static executables need to be loaded somewhere, by kernel or boot loader 
or ROM or $othermagic, and the program headers describe what and where to 
load.  So, you really might want to reconsider.  At least one PT_LOAD 
segment covering the whole file would be good.


Ciao,
Michael.


More information about the Binutils mailing list