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:
parent
835680f0e7
commit
ade3394f11
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
. = ALIGN(4);
|
||||
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array*))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue