]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/ChangeLog
ld: pru: Fix resource_table output section alignment
authorDimitar Dimitrov <dimitar@dinux.eu>
Mon, 27 Sep 2021 19:43:24 +0000 (22:43 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Thu, 30 Sep 2021 19:15:50 +0000 (22:15 +0300)
commit5109a7bd9b87bdad530f2ebf97036e6087b4504d
tree2057541a7b7eedb4ad9808658371631e073d735c
parent9279eb5c2c4421329822186ed86b48faa9d310e6
ld: pru: Fix resource_table output section alignment

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.

ld/ChangeLog:

* scripttempl/pru.sc  (.resource_table): Align the output
section, not the first symbol.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
ld/ChangeLog
ld/scripttempl/pru.sc