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

Alan Modra amodra@gmail.com
Thu Sep 30 04:49:10 GMT 2021


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/.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list