[PATCH] ld: pru: Fix resource_table output section alignment

Dimitar Dimitrov dimitar@dinux.eu
Thu Sep 30 19:27:58 GMT 2021


On Thu, Sep 30, 2021 at 02:19:10PM +0930, Alan Modra wrote:
> On Tue, Sep 28, 2021 at 10:35:44PM +0300, Dimitar Dimitrov wrote:
> > My commit 261980de18b added alignment for the resource table symbol.
> > But it is wrong.  The Linux remoteproc driver loads and interprets the
> > contents of the .resource_table ELF section, not of a table symbol.
> > 
> > Without this patch, if the linker happens to output padding for symbol
> > alignment, then the resource table contents as viewed by the kernel
> > loader would "shift" and look corrupted.
> > 
> > I kindly ask this fix to be picked for both trunk and the 2.37 branch.
> > 
> > ld/ChangeLog:
> > 
> > 	* scripttempl/pru.sc  (.resource_table): Align the output
> > 	section, not the first symbol.
> 
> This is OK.  I assume you can commit the patch since I see you have
> commits to sim/.
Thank you. I pushed to both 2.37 (a9c3934f6cb) and master (5109a7bd9b8).

Regards,
Dimitar

> 
> -- 
> Alan Modra
> Australia Development Lab, IBM


More information about the Binutils mailing list