testsuite: coverage: align rodata section

This adds an ALIGN statement to the rodata linker snippet
for coverage. Without this, sometimes the section is not
aligned, but __init_array_start indicates an aligned
address, resulting in incorrect function pointers.
So align it.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2022-07-26 13:12:13 -07:00 committed by Carles Cufí
commit ade3394f11

View file

@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
. = ALIGN(4);
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array*))